Skip to content

Commit b5c6936

Browse files
committed
Add a linting step
1 parent d869505 commit b5c6936

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/python-tests.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,28 @@ on:
77
branches: [ main ]
88

99
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.12'
19+
cache: 'pip'
20+
21+
- name: Install pre-commit
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install pre-commit
25+
26+
- name: Run pre-commit
27+
run: |
28+
pre-commit run --all-files
29+
1030
test:
31+
needs: lint
1132
runs-on: ubuntu-latest
1233
steps:
1334
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)