Skip to content

Commit 12a80fa

Browse files
committed
ci: use uv to install and run mypy
1 parent 7e79fef commit 12a80fa

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/typing.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ jobs:
1515
- '3.11'
1616
- '3.12'
1717
- '3.13'
18-
runs-on: 'ubuntu-22.04'
18+
runs-on: 'ubuntu-24.04'
1919
steps:
20-
- name: Set up Python
21-
uses: actions/setup-python@v5
22-
with:
23-
python-version: ${{ matrix.py }}
24-
allow-prereleases: ${{ matrix.py == '3.13' && true || false }}
25-
2620
- uses: actions/checkout@v4
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v3
23+
with:
24+
version: "0.4.29"
2725

2826
- name: Install Dependencies
2927
run: |
30-
python -m pip install --require-hashes -r ci/requirements.txt
28+
uv venv --python ${{ matrix.py }} venv
29+
source venv/bin/activate
30+
uv pip install -r ci/requirements.txt
3131
3232
- name: Run mypy
3333
run: |
34-
mypy tests/*.py zstandard/*.py
34+
venv/bin/mypy tests/*.py zstandard/*.py

0 commit comments

Comments
 (0)