Skip to content

Commit

Permalink
Restore tox env cahing for test-wagtail-5, but include db in cache keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Babic committed Dec 22, 2024
1 parent ec56b1d commit b142a4d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ jobs:
run: |
python -Im pip install --upgrade pip flit tox tox-gh-actions || (echo "::error::Failed to install dependencies" && exit 1)
- name: 💾 Cache tox environments
uses: actions/cache@v4
with:
path: .tox
key: tox-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.django }}-${{ matrix.wagtail }}-${{ matrix.db }}-${{ hashFiles('tox.ini') }}

- name: 🏗️ Build wheel
run: python -Im flit build --format wheel || (echo "::error::Failed to build wheel" && exit 1)

Expand Down Expand Up @@ -101,7 +107,7 @@ jobs:
uses: actions/cache@v4
with:
path: .tox
key: tox-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.django }}-${{ matrix.wagtail }}-${{ hashFiles('tox.ini') }}
key: tox-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.django }}-${{ matrix.wagtail }}-sqlite-${{ hashFiles('tox.ini') }}

- name: 🏗️ Build wheel
run: python -Im flit build --format wheel || (echo "::error::Failed to build wheel" && exit 1)
Expand Down

0 comments on commit b142a4d

Please sign in to comment.