File tree Expand file tree Collapse file tree 3 files changed +74
-50
lines changed
Expand file tree Collapse file tree 3 files changed +74
-50
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on : push
4+
5+ jobs :
6+ test :
7+ runs-on : ubuntu-latest
8+
9+ strategy :
10+ max-parallel : 5
11+ matrix :
12+ python-version :
13+ - 2.7
14+ - 3.6
15+ - 3.7
16+ - 3.8
17+ - 3.9
18+
19+ steps :
20+ - uses : actions/checkout@v1
21+
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v2
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+
27+ - name : Install dependencies
28+ run : |
29+ python -m pip install --upgrade pip
30+ pip install tox tox-gh-actions
31+
32+ - name : Test with tox
33+ run : tox
34+
35+ release :
36+ runs-on : ubuntu-latest
37+
38+ needs : test
39+
40+ steps :
41+ - uses : actions/checkout@master
42+
43+ - name : Set up Python 3.9
44+ uses : actions/setup-python@v1
45+ with :
46+ python-version : 3.9
47+
48+ - name : Install pypa/build
49+ run : python -m pip install build --user
50+
51+ - name : Build a binary wheel and a source tarball
52+ run : >-
53+ python -m build --sdist --wheel --outdir dist/ .
54+
55+ - name : Publish distribution to PyPI
56+ if : startsWith(github.ref, 'refs/tags')
57+ uses : pypa/gh-action-pypi-publish@master
58+ with :
59+ password : ${{ secrets.pypi_password }}
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ on: [pull_request]
55jobs :
66 test :
77 runs-on : ubuntu-latest
8+
89 strategy :
910 max-parallel : 5
1011 matrix :
@@ -16,14 +17,17 @@ jobs:
1617 - 3.9
1718
1819 steps :
19- - uses : actions/checkout@v1
20- - name : Set up Python ${{ matrix.python-version }}
21- uses : actions/setup-python@v2
22- with :
23- python-version : ${{ matrix.python-version }}
24- - name : Install dependencies
25- run : |
26- python -m pip install --upgrade pip
27- pip install tox tox-gh-actions
28- - name : Test with tox
29- run : tox
20+ - uses : actions/checkout@v1
21+
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v2
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+
27+ - name : Install dependencies
28+ run : |
29+ python -m pip install --upgrade pip
30+ pip install tox tox-gh-actions
31+
32+ - name : Test with tox
33+ run : tox
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments