diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8af6bc782..a814eccf4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: with: python-version: ${{ matrix.python-version }} allow-prereleases: true - cache: pip + - uses: hynek/setup-cached-uv@v2 - name: Prepare tox run: | @@ -70,9 +70,9 @@ jobs: echo DO_MYPY=$DO_MYPY >>$GITHUB_ENV echo TOX_PYTHON=py$(echo $V | tr -d .) >>$GITHUB_ENV - python -Im pip install tox + uv pip install --system tox - - run: python -Im pip install tox-uv + - run: uv pip install --system tox-uv if: matrix.python-version != '3.7' - run: python -Im tox run -e ${{ env.TOX_PYTHON }}-mypy @@ -119,9 +119,9 @@ jobs: with: python-version: ${{ matrix.python-version }} allow-prereleases: true - cache: pip + - uses: hynek/setup-cached-uv@v2 - - run: python -Im pip install tox-uv + - run: uv pip install --system tox-uv - run: > python -Im @@ -144,7 +144,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version-file: .python-version-default - cache: pip + - uses: hynek/setup-cached-uv@v2 - name: Download coverage data uses: actions/download-artifact@v4 @@ -154,7 +154,7 @@ jobs: - name: Combine coverage & fail if it's <100%. run: | - python -Im pip install coverage[toml] + uv pip install --system coverage[toml] python -Im coverage combine python -Im coverage html --skip-covered --skip-empty @@ -187,9 +187,9 @@ jobs: with: # Keep in sync with tox/docs and .readthedocs.yaml. python-version: "3.12" - cache: pip + - uses: hynek/setup-cached-uv@v2 - - run: python -Im pip install tox-uv + - run: uv pip install --system tox-uv - run: python -Im tox run -e docs,changelog pyright: @@ -200,9 +200,9 @@ jobs: - uses: actions/setup-python@v5 with: python-version-file: .python-version-default - cache: pip + - uses: hynek/setup-cached-uv@v2 - - run: python -Im pip install tox-uv + - run: uv pip install --system tox-uv - run: python -Im tox run -e pyright install-dev: @@ -214,9 +214,8 @@ jobs: - uses: actions/setup-python@v5 with: python-version-file: .python-version-default - cache: pip + - uses: hynek/setup-cached-uv@v2 - - run: python -Im pip install uv - run: uv venv --python $(cat .python-version-default) - run: uv pip install -e .[dev]