File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44name : Upload Python Package
55
66on :
7- release :
8- types : [created]
7+ push :
8+ tags :
9+ - " v1.*.*"
910
1011jobs :
1112 deploy :
12-
1313 runs-on : ubuntu-latest
1414
1515 steps :
16- - uses : actions/checkout@v2
17- - name : Set up Python
18- uses : actions/setup-python@v2
19- with :
20- python-version : ' 3.x'
21- - name : Install dependencies
22- run : |
23- python -m pip install --upgrade pip
24- pip install setuptools wheel twine tox
25- - name : Run Tests
26- run : tox
27- - name : Build and publish
28- env :
29- TWINE_USERNAME : __token__
30- TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
31- run : |
32- python setup.py sdist bdist_wheel
33- twine upload dist/*
16+ - uses : actions/checkout@v2
17+ - name : Set up Python
18+ uses : actions/setup-python@v2
19+ with :
20+ python-version : " 3.x"
21+ - name : Install dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install setuptools wheel twine tox
25+ - name : Run Tests
26+ run : tox
27+ - name : Build and publish
28+ env :
29+ TWINE_USERNAME : __token__
30+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
31+ run : |
32+ python setup.py sdist bdist_wheel
33+ twine upload dist/*
Original file line number Diff line number Diff line change 11[tox]
22envlist =
33 py{3.6,3.7,3.8,3.9},
4- py3.8-{ codestyle,mypy}
4+ py3.8-codestyle
55
66[testenv]
77install_command = python -m pip install --no-deps {opts} {packages}
You can’t perform that action at this time.
0 commit comments