8000 Update python-package.yml · jacalata/document-api-python@70ffc24 · GitHub
[go: up one dir, main page]

Skip to content
65E6

Commit 70ffc24

Browse files
authored
Update python-package.yml
separate lint from building for easier interpretation of results
1 parent 661d329 commit 70ffc24

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,32 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
python -m pip install --upgrade pip
31-
python -m pip install pycodestyle
31+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32+
- name: Test
33+
run: |
34+
python setup.py test
35+
36+
37+
lint:
38+
39+
runs-on: ubuntu-latest
40+
strategy:
41+
fail-fast: false
42+
matrix:
43+
python-version: [3.9]
44+
45+
steps:
46+
- uses: actions/checkout@v2
47+
- name: Set up Python ${{ matrix.python-version }}
48+
uses: actions/setup-python@v2
49+
with:
50+
python-version: ${{ matrix.python-version }}
51+
- name: Install dependencies
52+
run: |
53+
python -m pip install --upgrade pip
54+
python -m pip install pycodestyle
3255
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3356
- name: Lint with pycodestyle
3457
run: |
3558
pycodestyle tableaudocumentapi test samples
36-
- name: Test
37-
run: |
38-
python setup.py test
59+

0 commit comments

Comments
 (0)
0