From 12a80fac558820adf43e6f16206120685b9eb880 Mon Sep 17 00:00:00 2001 From: Gregory Szorc Date: Sun, 3 Nov 2024 20:05:15 -0800 Subject: [PATCH] ci: use uv to install and run mypy --- .github/workflows/typing.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/typing.yml b/.github/workflows/typing.yml index b7a866a3..8c60b3b1 100644 --- a/.github/workflows/typing.yml +++ b/.github/workflows/typing.yml @@ -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