Skip to content

Commit 7923294

Browse files
committed
Add dedicated lint job to CI with format and style checks
Splits linting out of the test matrix into its own single job. Checks Python formatting (ruff format), Python linting (ruff check), Markdown formatting (mdformat), and shell formatting (shfmt).
1 parent 2c1a943 commit 7923294

1 file changed

Lines changed: 23 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,29 @@ on:
77
branches: [main]
88

99
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v5
17+
18+
- name: Install dependencies
19+
run: uv sync
20+
21+
- name: Check Python formatting
22+
run: uv run ruff format --check .
23+
24+
- name: Lint Python
25+
run: uv run ruff check .
26+
27+
- name: Check Markdown formatting
28+
run: uv run mdformat --check .
29+
30+
- name: Check shell formatting
31+
run: shfmt -d .
32+
1033
test:
1134
runs-on: ubuntu-latest
1235
strategy:
@@ -26,6 +49,3 @@ jobs:
2649

2750
- name: Run tests
2851
run: uv run pytest tests
29-
30-
- name: Run linter
31-
run: uv run ruff check .

0 commit comments

Comments
 (0)