File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -16,45 +16,46 @@ jobs:
16
16
build :
17
17
18
18
runs-on : ubuntu-latest
19
- strategy :
20
- max-parallel : 2
21
- matrix :
22
- python-version : [3.6, 3.7]
23
-
24
19
steps :
25
20
- uses : actions/checkout@v1
21
+
26
22
- name : Set up Python
27
23
uses : actions/setup-python@v1
28
24
with :
29
- python-version : ${{ matrix.python-version }}
25
+ python-version : ' 3.8'
26
+
30
27
- name : Install dependencies
31
28
run : |
32
29
python -m pip install --upgrade pip
33
- pip install -r requirements.txt
30
+ pip install flake8 wheel twine
31
+
34
32
- name : Lint with flake8
35
33
run : |
36
34
pip install flake8
37
35
# stop the build if there are Python syntax errors or undefined names
38
36
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
39
37
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
40
38
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39
+
41
40
- name : Package wheel
42
41
run : |
43
42
pip install wheel
44
43
python setup.py bdist_wheel
45
44
find dist -name "*whl" -exec unzip -l '{}' \;
45
+
46
46
- name : Package source distribution
47
47
run : |
48
48
python setup.py sdist
49
+
49
50
- name : Check Distribution Files
50
51
run : |
51
- pip install twine
52
52
twine check dist/*
53
53
54
54
- name : Publish (test pypi)
55
55
if : |
56
56
github.event_name == 'push' && (
57
57
github.ref == 'refs/heads/develop'
58
+ || github.ref == 'refs/heads/prep-release'
58
59
)
59
60
60
61
run : |
You can’t perform that action at this time.
0 commit comments