File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 types : [created]
66
77jobs :
8+ test :
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ python-version : ["3.7", "3.8", "3.9", "3.10"]
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Set up Python ${{ matrix.python-version }}
16+ uses : actions/setup-python@v2
17+ with :
18+ python-version : ${{ matrix.python-version }}
19+ - uses : actions/cache@v2
20+ name : Configure pip caching
21+ with :
22+ path : ~/.cache/pip
23+ key : ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
24+ restore-keys : |
25+ ${{ runner.os }}-pip-
26+ - name : Install dependencies
27+ run : |
28+ pip install -e '.[test]'
29+ - name : Run tests
30+ run : |
31+ pytest
832 deploy :
933 runs-on : ubuntu-latest
34+ needs : [test]
1035 steps :
1136 - uses : actions/checkout@v2
1237 - name : Set up Python
1338 uses : actions/setup-python@v2
1439 with :
15- python-version : ' 3.8 '
40+ python-version : " 3.10 "
1641 - uses : actions/cache@v2
1742 name : Configure pip caching
1843 with :
@@ -22,16 +47,12 @@ jobs:
2247 ${{ runner.os }}-publish-pip-
2348 - name : Install dependencies
2449 run : |
25- pip install -e '.[test]'
26- pip install setuptools wheel twine
27- - name : Run tests
28- run : pytest
50+ pip install setuptools wheel twine build
2951 - name : Publish
30- if : success()
3152 env :
3253 TWINE_USERNAME : __token__
3354 TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
3455 run : |
35- python setup.py sdist bdist_wheel
56+ python -m build
3657 twine upload dist/*
3758
Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88 strategy :
99 matrix :
10- python-version : [3.6, 3.7, 3.8 ]
10+ python-version : ["3.7", "3.8", "3.9", "3.10" ]
1111 steps :
1212 - uses : actions/checkout@v2
1313 - name : Set up Python ${{ matrix.python-version }}
You can’t perform that action at this time.
0 commit comments