Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 3 additions & 5 deletions .github/actions/setup-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs:
description: "Python version (e.g. '3.7', '3.8.13', '3.11.0-alpha.1', '3.x')."
required: true
requirements:
description: "Optional list of arguments passed to `uv pip install` (e.g. 'numpy==1.19.5', '-r requirements.txt')."
description: "Optional list of arguments passed to `uv pip install` (e.g. 'tox', 'numpy==1.19.5')."
required: false

runs:
Expand All @@ -17,7 +17,7 @@ runs:
# create and activate a virtual environment that is used by all
# subsequent steps (e.g. the `uv pip install` step below installs
# into it). Also enables uv's built-in cache. The cache key takes
# the platform, the uv version, and a hash of the files below
# the platform, the uv version, and a hash of pyproject.toml
# into account.
# See https://docs.astral.sh/uv/guides/integration/github/ for details.
# NOTE: setup-uv publishes immutable releases only (no
Expand All @@ -29,9 +29,7 @@ runs:
activate-environment: true
enable-cache: true
cache-suffix: "py${{ inputs.python-version }}"
cache-dependency-glob: |
pyproject.toml
requirements/*.txt
cache-dependency-glob: pyproject.toml

- name: Install requirements
if: ${{ inputs.requirements != '' }}
Expand Down
1 change: 1 addition & 0 deletions docs/reference/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Unreleased changes
- Fix the test suite's compatibility with the latest pytest release ({gh-pr}`384`)
- Use the official `astral-sh/setup-uv` action to install and cache `uv` in CI ({gh-pr}`386`)
- Let `uv` manage the Python interpreter and virtual environment in CI ({gh-pr}`393`)
- Remove the stale `requirements/*.txt` glob from the CI cache key, left over from the migration to PEP 735 dependency groups ({gh-pr}`394`)

---

Expand Down
Loading