Skip to content

Commit 4b7cf77

Browse files
Merge pull request #394 from tpvasconcelos/219-stale-cache-glob
Remove the stale requirements/*.txt glob from the CI cache key
2 parents 5006b19 + f372924 commit 4b7cf77

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/actions/setup-python/action.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
description: "Python version (e.g. '3.7', '3.8.13', '3.11.0-alpha.1', '3.x')."
88
required: true
99
requirements:
10-
description: "Optional list of arguments passed to `uv pip install` (e.g. 'numpy==1.19.5', '-r requirements.txt')."
10+
description: "Optional list of arguments passed to `uv pip install` (e.g. 'tox', 'numpy==1.19.5')."
1111
required: false
1212

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

3634
- name: Install requirements
3735
if: ${{ inputs.requirements != '' }}

docs/reference/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Unreleased changes
3636
- Fix the test suite's compatibility with the latest pytest release ({gh-pr}`384`)
3737
- Use the official `astral-sh/setup-uv` action to install and cache `uv` in CI ({gh-pr}`386`)
3838
- Let `uv` manage the Python interpreter and virtual environment in CI ({gh-pr}`393`)
39+
- Remove the stale `requirements/*.txt` glob from the CI cache key, left over from the migration to PEP 735 dependency groups ({gh-pr}`394`)
3940

4041
---
4142

0 commit comments

Comments
 (0)