Skip to content

Commit b1b0584

Browse files
committed
reset venv cache every month
1 parent f98192a commit b1b0584

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/full-test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,17 @@ jobs:
1818
- uses: actions/checkout@v2
1919
with:
2020
python-version: 3.8
21+
- name: Get current year-month
22+
id: date
23+
run: echo "::set-output name=date::$(date+'%Y-%m')"
2124
- uses: actions/cache@v2
25+
# the cache for python package is reset:
26+
# * every month
27+
# * when requirements/requirements_testing change
2228
id: cache-venv
2329
with:
2430
path: ~/test_env
25-
key: ${{ runner.os }}-venv-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/requirements_testing.txt') }}
31+
key: ${{ runner.os }}-venv-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/requirements_testing.txt') }}-${{ steps.date.outputs.date }}
2632
restore-keys: |
2733
${{ runner.os }}-venv-
2834
- name: Install dependencies

0 commit comments

Comments
 (0)