File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments