Skip to content

Commit 27234e6

Browse files
committed
run pyright within uv venv
1 parent 0b4cd7d commit 27234e6

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,22 @@ jobs:
1212
Lint:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-python@v4
17-
with:
18-
python-version: '3.12'
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
1918
- name: Install uv
2019
uses: astral-sh/setup-uv@v6
21-
- run: uvx pyright .
22-
- run: uvx ruff check .
20+
with:
21+
enable-cache: true
22+
23+
- name: Set up Python
24+
run: uv python install 3.13
25+
26+
- name: Install dependencies
27+
run: uv sync --all-extras
28+
29+
- name: Run Pyright
30+
run: uvx pyright --pythonpath .venv/bin/python .
31+
32+
- name: Run Ruff
33+
run: uvx ruff check .

0 commit comments

Comments
 (0)