Skip to content

Commit 51f449d

Browse files
committed
Tweak github actions
1 parent 4c49451 commit 51f449d

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/pythonpackage.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -16,45 +16,46 @@ jobs:
1616
build:
1717

1818
runs-on: ubuntu-latest
19-
strategy:
20-
max-parallel: 2
21-
matrix:
22-
python-version: [3.6, 3.7]
23-
2419
steps:
2520
- uses: actions/checkout@v1
21+
2622
- name: Set up Python
2723
uses: actions/setup-python@v1
2824
with:
29-
python-version: ${{ matrix.python-version }}
25+
python-version: '3.8'
26+
3027
- name: Install dependencies
3128
run: |
3229
python -m pip install --upgrade pip
33-
pip install -r requirements.txt
30+
pip install flake8 wheel twine
31+
3432
- name: Lint with flake8
3533
run: |
3634
pip install flake8
3735
# stop the build if there are Python syntax errors or undefined names
3836
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3937
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
4038
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+
4140
- name: Package wheel
4241
run: |
4342
pip install wheel
4443
python setup.py bdist_wheel
4544
find dist -name "*whl" -exec unzip -l '{}' \;
45+
4646
- name: Package source distribution
4747
run: |
4848
python setup.py sdist
49+
4950
- name: Check Distribution Files
5051
run: |
51-
pip install twine
5252
twine check dist/*
5353
5454
- name: Publish (test pypi)
5555
if: |
5656
github.event_name == 'push' && (
5757
github.ref == 'refs/heads/develop'
58+
|| github.ref == 'refs/heads/prep-release'
5859
)
5960
6061
run: |

0 commit comments

Comments
 (0)