Skip to content

Commit 3eb966e

Browse files
author
daniel.eades
committed
fixup
1 parent 70ad4b5 commit 3eb966e

File tree

1 file changed

+10
-30
lines changed

1 file changed

+10
-30
lines changed

.github/workflows/lint.yml

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@ jobs:
2626
- uses: actions/checkout@v4
2727
with:
2828
persist-credentials: false
29-
30-
- name: Install Ruff
31-
uses: astral-sh/ruff-action@v3
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v6
3231
with:
33-
args: --version
34-
32+
version: latest
33+
enable-cache: false
3534
- name: Lint with Ruff
36-
run: ruff check --output-format=github
37-
35+
run: uv run ruff check --output-format=github
3836
- name: Format with Ruff
39-
run: ruff format --diff
37+
run: uv run ruff format --diff
4038

4139
mypy:
4240
runs-on: ubuntu-latest
@@ -45,19 +43,13 @@ jobs:
4543
- uses: actions/checkout@v4
4644
with:
4745
persist-credentials: false
48-
- name: Set up Python
49-
uses: actions/setup-python@v5
50-
with:
51-
python-version: "3"
5246
- name: Install uv
5347
uses: astral-sh/setup-uv@v6
5448
with:
5549
version: latest
5650
enable-cache: false
57-
- name: Install dependencies
58-
run: uv pip install -r pyproject.toml --group package --group test --group types
5951
- name: Type check with mypy
60-
run: mypy
52+
run: uv run mypy
6153

6254
pyright:
6355
runs-on: ubuntu-latest
@@ -66,19 +58,13 @@ jobs:
6658
- uses: actions/checkout@v4
6759
with:
6860
persist-credentials: false
69-
- name: Set up Python
70-
uses: actions/setup-python@v5
71-
with:
72-
python-version: "3"
7361
- name: Install uv
7462
uses: astral-sh/setup-uv@v6
7563
with:
7664
version: latest
7765
enable-cache: false
78-
- name: Install dependencies
79-
run: uv pip install -r pyproject.toml --group package --group test --group types
8066
- name: Type check with pyright
81-
run: pyright
67+
run: uv run pyright
8268

8369
docs-lint:
8470
runs-on: ubuntu-latest
@@ -102,18 +88,12 @@ jobs:
10288
- uses: actions/checkout@v4
10389
with:
10490
persist-credentials: false
105-
- name: Set up Python
106-
uses: actions/setup-python@v5
107-
with:
108-
python-version: "3"
10991
- name: Install uv
11092
uses: astral-sh/setup-uv@v6
11193
with:
11294
version: latest
11395
enable-cache: false
114-
- name: Install dependencies
115-
run: uv pip install --group package
11696
- name: Lint with twine
11797
run: |
118-
python -m build .
119-
twine check dist/*
98+
uv build
99+
uv run twine check dist/*

0 commit comments

Comments
 (0)