diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ecb3b61..b3321b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,9 @@ jobs: build: name: Build EPUB (${{ matrix.lang }}) runs-on: ubuntu-latest + env: + # Pin every uv command (uv venv and the PEP 723 env of `uv run`) to 3.11. + UV_PYTHON: '3.11' strategy: # Don't cancel other languages if one fails — we still want to release # whichever languages built successfully. @@ -28,6 +31,9 @@ jobs: with: node-version: '22' + - name: Set up Python + run: uv python install 3.11 + - name: Install Python dependencies run: | uv venv diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ccf2b87..33e7f64 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -154,6 +154,9 @@ jobs: runs-on: ubuntu-latest needs: [pytest, lint, security, type-check] if: ${{ !failure() && !cancelled() }} + env: + # Pin every uv command (uv venv and the PEP 723 env of `uv run`) to 3.11. + UV_PYTHON: '3.11' # This job is the only gate on the full EPUB build, which stays out of # pre-commit because it is slow (the pre-commit mermaid hooks already