Skip to content

Commit

Permalink
add python version to cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostiiii committed Jul 31, 2020
1 parent aea6c44 commit 5fca89b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
id: cache
with:
path: ~/.cache/pip
key: tests-${{ runner.os }}-pip-${{ hashFiles('requirements/main.txt', 'requirements/dev.txt') }}
key: tests-${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements/main.txt', 'requirements/dev.txt') }}

- name: "5. Tests"
run: |
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
id: cache
with:
path: ~/.cache/pip
key: release-${{ runner.os }}-pip-${{ hashFiles('requirements/main.txt', 'requirements/release.txt') }}
key: release-${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements/main.txt', 'requirements/release.txt') }}

- name: "6. Build docs"
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
id: cache
with:
path: ~/.cache/pip
key: tests-${{ runner.os }}-pip-${{ hashFiles('requirements/main.txt', 'requirements/dev.txt') }}
key: tests-${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements/main.txt', 'requirements/dev.txt') }}

- name: "5. Tests"
run: |
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
id: cache
with:
path: ~/.cache/pip
key: release-${{ runner.os }}-pip-${{ hashFiles('requirements/main.txt', 'requirements/release.txt') }}
key: release-${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements/main.txt', 'requirements/release.txt') }}

- name: "6. Build docs"
run: |
Expand Down

0 comments on commit 5fca89b

Please sign in to comment.