Skip to content

Commit

Permalink
Fix CI venv caching
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkrzyskow committed Feb 13, 2024
1 parent 271c8db commit 6f6c426
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/dev.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
# 0 is needed for the update time plugin to work properly
fetch-depth: 0
- name: Install Python
id: install-python
uses: actions/setup-python@v5
with:
python-version: 3.12
Expand All @@ -30,7 +31,7 @@ jobs:
uses: actions/cache@v4
with:
path: venv
key: requirements-${{ hashFiles('requirements*.txt') }}
key: requirements-${{ steps.install-python.outputs.python-version }}-${{ hashFiles('requirements*.txt') }}
- name: Install Uncached Requirements
if: steps.cache-requirements.outputs.cache-hit != 'true'
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/master.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
# 0 is needed for the update time plugin to work properly
fetch-depth: 0
- name: Install Python
id: install-python
uses: actions/setup-python@v5
with:
python-version: 3.12
Expand All @@ -29,7 +30,7 @@ jobs:
uses: actions/cache@v4
with:
path: venv
key: requirements-${{ hashFiles('requirements*.txt') }}
key: requirements-${{ steps.install-python.outputs.python-version }}-${{ hashFiles('requirements*.txt') }}
- name: Install Uncached Requirements
if: steps.cache-requirements.outputs.cache-hit != 'true'
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pull.request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
# 0 is needed for the update time plugin to work properly
fetch-depth: 1
- name: Install Python
id: install-python
uses: actions/setup-python@v5
with:
python-version: 3.12
Expand All @@ -29,7 +30,7 @@ jobs:
uses: actions/cache@v4
with:
path: venv
key: requirements-${{ hashFiles('requirements*.txt') }}
key: requirements-${{ steps.install-python.outputs.python-version }}-${{ hashFiles('requirements*.txt') }}
- name: Install Uncached Requirements
if: steps.cache-requirements.outputs.cache-hit != 'true'
run: |
Expand Down

0 comments on commit 6f6c426

Please sign in to comment.