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
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- build :
6
+ tests :
7
7
8
8
runs-on : ${{ matrix.os }}
9
9
@@ -19,35 +19,29 @@ jobs:
19
19
uses : actions/setup-python@v2
20
20
with :
21
21
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
26
24
- name : Test
27
- run : |
28
- tox -e py
25
+ run : tox -e py
29
26
30
27
deploy :
31
28
32
29
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
33
30
34
31
runs-on : ubuntu-latest
35
32
36
- needs : build
33
+ needs : tests
37
34
38
35
steps :
39
36
- uses : actions/checkout@v1
40
37
- name : Set up Python
41
- uses : actions/setup-python@v1
38
+ uses : actions/setup-python@v2
42
39
with :
43
40
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
48
43
- name : Build package
49
- run : |
50
- python setup.py sdist bdist_wheel
44
+ run : hatch build
51
45
- name : Publish package to PyPI
52
46
uses : pypa/gh-action-pypi-publish@master
53
47
with :
You can’t perform that action at this time.
0 commit comments