@@ -2,8 +2,6 @@ name: Python Build, Lint
2
2
3
3
on :
4
4
push :
5
- release :
6
- types : [published]
7
5
8
6
jobs :
9
7
build-test-lint :
46
44
# pip install -r requirements/test.txt
47
45
# pytest -v
48
46
# working-directory: xero-python
49
- deploy :
50
- runs-on : ubuntu-latest
51
- needs : build-test-lint
52
- if : github.event_name == 'release' && github.event.action == 'published'
53
-
54
- steps :
55
- - name : Checkout xero-python repo
56
- uses : actions/checkout@v4
57
- with :
58
- repository : XeroAPI/xero-python
59
- path : xero-python
60
-
61
- - name : Set up Python environment
62
- uses : actions/setup-python@v5
63
- with :
64
- python-version : ' 3.8'
65
- cache : ' pip'
66
-
67
- - name : Install dependencies
68
- run : |
69
- python -m venv venv
70
- source venv/bin/activate
71
- pip install --upgrade pip
72
- pip install black
73
- sudo pip install flake8
74
- pip install -r requirements.txt -r requirements/dev.txt
75
- working-directory : xero-python
76
-
77
- - name : Build new package version
78
- run : python setup.py sdist
79
- working-directory : xero-python
80
-
81
- - name : Verify new package version
82
- run : ls -al dist
83
- working-directory : xero-python
84
-
85
- - name : Deploy to test PyPi
86
- env :
87
- TWINE_USERNAME : ${{ secrets.TEST_PYPI_USERNAME }}
88
- TWINE_PASSWORD : ${{ secrets.TEST_PYPI_PASSWORD }}
89
- run : twine upload --repository-url https://test.pypi.org/legacy/ dist/*
90
- working-directory : xero-python
0 commit comments