Force pip install everything every month by removeing the cache.
@@ -18,14 +18,14 @@ jobs:
- uses: actions/checkout@v2
with:
python-version: 3.8
- - name: Which python
- run: |
- which python
+ - name: Get current year-month
+ id: date
+ run: echo "::set-output name=date::$(date+'%Y-%m')"
- uses: actions/cache@v2
id: cache-venv
with:
path: ~/test_env
- key: ${{ runner.os }}-venv-${{ hashFiles('**/requirements.txt') }}${{ hashFiles('**/requirements_full.txt') }}-${{ hashFiles('**/requirements_extractors.txt') }}-${{ hashFiles('**/requirements_test.txt') }}
+ key: ${{ runner.os }}-venv-${{ hashFiles('**/requirements.txt') }}${{ hashFiles('**/requirements_full.txt') }}-${{ hashFiles('**/requirements_extractors.txt') }}-${{ hashFiles('**/requirements_test.txt') }}-${{ steps.date.outputs.date }}
restore-keys: |
${{ runner.os }}-venv
- name: Install dependencies
