diff --git a/.github/workflows/python-test.yaml b/.github/workflows/python-test.yaml index 63665e15c7..81df0a3d0d 100644 --- a/.github/workflows/python-test.yaml +++ b/.github/workflows/python-test.yaml @@ -26,6 +26,8 @@ jobs: matrix: os: ["ubuntu-20.04", "windows-latest"] python_version: ["3.9", "3.10", "3.11", "3.12"] + env: + UV_SYSTEM_PYTHON: 1 steps: - uses: actions/checkout@v4 - name: Setup python @@ -33,6 +35,12 @@ jobs: with: python-version: ${{ matrix.python_version }} architecture: x64 + - name: Install uv + uses: astral-sh/setup-uv@v3 + with: + enable-cache: true + version: "0.4.20" + cache-dependency-glob: "requirements**.txt" - name: Setup node uses: actions/setup-node@v4 with: @@ -44,8 +52,7 @@ jobs: npm run build - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r requirements-dev.txt + uv pip install -r requirements-dev.txt - name: Lint with ruff run: ruff check . - name: Check types with mypy