Skip to content

Commit

Permalink
ci: use uv to install and run mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
indygreg committed Nov 4, 2024
1 parent 7e79fef commit 12a80fa
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ jobs:
- '3.11'
- '3.12'
- '3.13'
runs-on: 'ubuntu-22.04'
runs-on: 'ubuntu-24.04'
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
allow-prereleases: ${{ matrix.py == '3.13' && true || false }}

- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.29"

- name: Install Dependencies
run: |
python -m pip install --require-hashes -r ci/requirements.txt
uv venv --python ${{ matrix.py }} venv
source venv/bin/activate
uv pip install -r ci/requirements.txt
- name: Run mypy
run: |
mypy tests/*.py zstandard/*.py
venv/bin/mypy tests/*.py zstandard/*.py

0 comments on commit 12a80fa

Please sign in to comment.