Skip to content

Commit 909fe08

Browse files
[CI] Lint stage is added.
Do not run tests if lint fails.
1 parent 7b290fd commit 909fe08

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/package-verification.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,31 @@ on:
1010
branches: [ "master" ]
1111

1212
jobs:
13-
build:
13+
lint:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v3
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install flake8 flake8-pyproject
31+
- name: Lint with flake8
32+
run: |
33+
flake8 .
1434
35+
test:
1536
runs-on: ubuntu-latest
37+
needs: lint
1638
strategy:
1739
fail-fast: false
1840
matrix:

0 commit comments

Comments
 (0)