Skip to content

Commit 4e3f905

Browse files
committed
fix ci caching hopefully
1 parent daeda64 commit 4e3f905

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/cache@v4
3232
with:
3333
path: ~/.local
34-
key: poetry-1.1.12-0
34+
key: poetry-${{ matrix.python-version }}
3535

3636
# Install Poetry. You could do this manually, or there are several actions that do this.
3737
# `snok/install-poetry` seems to be minimal yet complete, and really just calls out to
@@ -44,7 +44,7 @@ jobs:
4444
# cache it.
4545
- uses: snok/install-poetry@v1
4646
with:
47-
version: 1.5.1
47+
version: 1.8.5
4848
virtualenvs-create: true
4949
virtualenvs-in-project: true
5050

@@ -56,7 +56,7 @@ jobs:
5656
uses: actions/cache@v4
5757
with:
5858
path: .venv
59-
key: pydeps-${{ hashFiles('**/poetry.lock') }}
59+
key: pydeps-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
6060

6161
# Install dependencies. `--no-root` means "install all dependencies but not the project
6262
# itself", which is what you want to avoid caching _your_ code. The `if` statement
@@ -79,6 +79,6 @@ jobs:
7979
# https://github.com/astral-sh/ruff/issues/8430
8080
# - run: poetry run ruff format --check
8181
- name: Upload coverage reports to Codecov
82-
uses: codecov/codecov-action@v4.0.1
82+
uses: codecov/codecov-action@v5.0.2
8383
with:
8484
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)