File tree Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: build
33on : [push, pull_request]
44
55jobs :
6- build :
6+ tests :
77
88 runs-on : ${{ matrix.os }}
99
@@ -19,35 +19,29 @@ jobs:
1919 uses : actions/setup-python@v2
2020 with :
2121 python-version : ${{ matrix.python }}
22- - name : Install tox setuptools_scm
23- run : |
24- python -m pip install --upgrade pip
25- pip install tox setuptools_scm hatch
22+ - name : Install tox
23+ run : pip install tox
2624 - name : Test
27- run : |
28- tox -e py
25+ run : tox -e py
2926
3027 deploy :
3128
3229 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
3330
3431 runs-on : ubuntu-latest
3532
36- needs : build
33+ needs : tests
3734
3835 steps :
3936 - uses : actions/checkout@v1
4037 - name : Set up Python
41- uses : actions/setup-python@v1
38+ uses : actions/setup-python@v2
4239 with :
4340 python-version : " 3.7"
44- - name : Install wheel
45- run : |
46- python -m pip install --upgrade pip
47- pip install wheel
41+ - name : Install hatch
42+ run : pip install hatch
4843 - name : Build package
49- run : |
50- python setup.py sdist bdist_wheel
44+ run : hatch build
5145 - name : Publish package to PyPI
5246 uses : pypa/gh-action-pypi-publish@master
5347 with :
You can’t perform that action at this time.
0 commit comments