Do version specific cashing for tox. Use correct path.

pull/7657/head
Richard Tibbles 2 years ago
parent 455ba83bc1
commit 2c25850614
  1. 12
      .github/workflows/tox.yml

@ -31,10 +31,10 @@ jobs:
- name: tox env cache
uses: actions/cache@v2
with:
path: ./.tox
key: ${{ runner.os }}-tox-${{ hashFiles('**/requirements/*.txt') }}
path: ${{ github.workspace }}/.tox/py${{ matrix.python-version }}
key: ${{ runner.os }}-tox-py${{ matrix.python-version }}-${{ hashFiles('**/requirements/*.txt') }}
restore-keys: |
${{ runner.os }}-tox-
${{ runner.os }}-tox-py${{ matrix.python-version }}
- name: Test with tox
run: tox -e py${{ matrix.python-version }}
postgres:
@ -79,9 +79,9 @@ jobs:
- name: tox env cache
uses: actions/cache@v2
with:
path: ./.tox
key: ${{ runner.os }}-tox-${{ hashFiles('**/requirements/*.txt') }}
path: ${{ github.workspace }}/.tox/py${{ matrix.python-version }}
key: ${{ runner.os }}-tox-py${{ matrix.python-version }}-${{ hashFiles('**/requirements/*.txt') }}
restore-keys: |
${{ runner.os }}-tox-
${{ runner.os }}-tox-py${{ matrix.python-version }}
- name: Test with tox
run: tox -e postgres

Loading…
Cancel
Save