Skip to content

Commit 69d132c

Browse files
committed
Separate linting in CI
1 parent 562ceed commit 69d132c

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,27 @@ jobs:
3232
make install-req
3333
make install-test
3434
- name: Test
35+
run: make pytest
36+
lint:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: actions/setup-python@v2
41+
with:
42+
python-version: 3.9
43+
- uses: actions/cache@v2
44+
with:
45+
path: ~/.cache/pip
46+
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
47+
restore-keys: |
48+
${{ runner.os }}-pip-
49+
- name: Install dependencies
50+
run: |
51+
sudo apt-get update -qq
52+
sudo apt-get install -qq swig python-dev libxml2-dev libxmlsec1-dev
53+
make install-req
54+
make install-test
55+
- name: Run linters
3556
run: |
36-
make pytest
3757
make pycodestyle
3858
make flake8
39-

0 commit comments

Comments
 (0)