Skip to content

Commit af026ab

Browse files
committed
ci.yml: separate coding style checks
Separate coding style checks so these will be run only once and probably get reported sooner as the unit test runnings.
1 parent 9ca9eef commit af026ab

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@ name: build
33
on: [push, pull_request]
44

55
jobs:
6+
cs:
7+
name: Coding style checks
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Python 3.8
12+
uses: actions/setup-python@v1
13+
with:
14+
python-version: '3.8'
15+
- name: Bootstrap environment
16+
run: |
17+
sudo apt update
18+
sudo apt install python3-venv make
19+
python -m pip install --upgrade pip
20+
make dev
21+
- name: Lint
22+
run: |
23+
make cs
24+
625
test:
726
name: Test with python ${{ matrix.python-version }}
827
runs-on: ubuntu-latest
@@ -22,9 +41,6 @@ jobs:
2241
sudo apt install python3-venv make
2342
python -m pip install --upgrade pip
2443
make dev
25-
- name: Lint
26-
run: |
27-
make cs
2844
- name: Test
2945
run: |
3046
make cov

0 commit comments

Comments
 (0)