Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -403,17 +403,40 @@ jobs:
SHARD_TOTAL: ${{ matrix.shard_total }}
TOX_ENV: ${{ matrix.tox_env }}
EXTRA_TESTS: ${{ matrix.extra_tests }}
WINDOWS_TOX_UV_VERSION: "1.35.2"
WINDOWS_TOX_VERSION: "4.56.1"
WINDOWS_UV_VERSION: "0.11.26"
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 1
persist-credentials: false
- name: Install uv (Windows)
if: matrix.os == 'windows-latest'
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
version: ${{ env.WINDOWS_UV_VERSION }}
enable-cache: true
cache-local-path: .tox/uv-cache
cache-python: true
cache-dependency-glob: |
pyproject.toml
tox.ini
uv.lock
cache-suffix: "windows-${{ matrix.tox_env }}-uv${{ env.WINDOWS_UV_VERSION }}-tox${{ env.WINDOWS_TOX_VERSION }}-toxuv${{ env.WINDOWS_TOX_UV_VERSION }}"
save-cache: ${{ matrix.shard == 1 }}
- name: Install the latest version of uv
if: matrix.os != 'windows-latest'
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
enable-cache: true
cache-suffix: "${{ matrix.tox_env }}-shard-${{ matrix.shard }}"
cache-suffix: "${{ matrix.tox_env }}-shard-${{ matrix.shard_total }}"
save-cache: ${{ matrix.shard == 1 }}
- name: Install tox (Windows)
if: matrix.os == 'windows-latest'
run: uv tool install --python-preference only-managed --python 3.13 "tox==${{ env.WINDOWS_TOX_VERSION }}" --with "tox-uv==${{ env.WINDOWS_TOX_UV_VERSION }}"
- name: Install tox
if: matrix.os != 'windows-latest'
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv
- name: Setup Python test environment
run: |
Expand Down
Loading