Skip to content

Commit 996a0ad

Browse files
add cache hit miss to ci
1 parent c6c2491 commit 996a0ad

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ jobs:
6666
path: |
6767
.venv
6868
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/base.txt', 'requirements/test.txt') }}
69+
- name: Set up Python ${{ env.PYTHON_VERSION }}
70+
uses: actions/setup-python@v5
71+
with:
72+
python-version: ${{ env.PYTHON_VERSION }}
73+
- name: Setup virtual environment (no cache hit)
74+
if: steps.virtualenv-cache.outputs.cache-hit != 'true'
75+
run: |
76+
python${{ env.PYTHON_VERSION }} -m venv .venv
77+
source .venv/bin/activate
78+
make install-ci
6979
- name: Run core tests
7080
run: |
7181
source .venv/bin/activate
@@ -106,6 +116,16 @@ jobs:
106116
path: |
107117
.venv
108118
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/base.txt', 'requirements/test.txt') }}
119+
- name: Set up Python ${{ env.PYTHON_VERSION }}
120+
uses: actions/setup-python@v5
121+
with:
122+
python-version: ${{ env.PYTHON_VERSION }}
123+
- name: Setup virtual environment (no cache hit)
124+
if: steps.virtualenv-cache.outputs.cache-hit != 'true'
125+
run: |
126+
python${{ env.PYTHON_VERSION }} -m venv .venv
127+
source .venv/bin/activate
128+
make install-ci
109129
- name: Test Dockerfile
110130
run: |
111131
source .venv/bin/activate

0 commit comments

Comments
 (0)