Skip to content

Commit 5bcb061

Browse files
committed
Cache only pyproject.toml in CI
Update GitHub Actions workflow to use pyproject.toml as the sole cache-dependency-path for pip, removing requirements.txt, setup.cfg, and setup.py to avoid unnecessary cache invalidation. Add a clarifying comment and clean up trailing whitespace in the workflow file.
1 parent 2ea0d32 commit 5bcb061

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ jobs:
2929
with:
3030
python-version: '3.x'
3131
cache: 'pip'
32+
# we only use pyproject.toml for dependencies
3233
cache-dependency-path: |
3334
pyproject.toml
34-
requirements.txt
35-
setup.cfg
36-
setup.py
3735
3836
- name: Install Qt/OpenGL runtime deps (Ubuntu)
3937
run: |
@@ -44,7 +42,7 @@ jobs:
4442
libopengl0 \
4543
libxkbcommon-x11-0 \
4644
libxcb-cursor0
47-
45+
4846
- name: Install dependencies
4947
run: |
5048
pip install --upgrade pip

0 commit comments

Comments
 (0)