Skip to content

Commit 9d0937c

Browse files
committed
Update lint jobs.
1 parent 55b4333 commit 9d0937c

File tree

2 files changed

+41
-10
lines changed

2 files changed

+41
-10
lines changed

.github/workflows/lint.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Format and Lint
2+
on:
3+
pull_request:
4+
branches: [main]
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
lint-python:
13+
name: Format and Lint Python
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v5
19+
- name: Run Ruff
20+
run: uv run ruff check . --output-format=github
21+
- name: Ruff format
22+
run: uv run ruff format . --check
23+
24+
lint-docs:
25+
name: Lint Markdown
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Markdown Lint base-files
30+
uses: DavidAnson/markdownlint-cli2-action@v20
31+
with:
32+
globs: |
33+
*.md
34+
.github/**/*.md
35+
config: ./.markdownlint.json
36+
- name: Markdown Lint Docs
37+
uses: DavidAnson/markdownlint-cli2-action@v20
38+
with:
39+
globs: docs/**/*.md
40+
config: docs/.markdownlint.json

.github/workflows/test.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,8 @@ on:
1717
- "tests/**"
1818
- "pyproject.toml"
1919
jobs:
20-
lint-and-format:
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v4
24-
- name: Install uv
25-
uses: astral-sh/setup-uv@v5
26-
- name: Run Ruff
27-
run: uv run ruff check . --output-format=github
28-
- name: Ruff format
29-
run: uv run ruff format . --check
3020
test-against-python-matrix:
21+
name: PyTest
3122
strategy:
3223
matrix:
3324
python-version: ["3.10", "3.11", "3.12", "3.13"]

0 commit comments

Comments
 (0)