Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 5cd68ef

Browse files
committed
Restore / Save Conda Cache explicitly in pytest workflow
By saving the cache explicitly before pyhdk is built, we should be able to keep pyhdk artifacts out of the cache.
1 parent 6445b15 commit 5cd68ef

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/pytest.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,29 @@ jobs:
2020
echo CONDA_ENV_PATH=$CONDA/envs/${{ env.CONDA_ENV }} >>$GITHUB_ENV
2121
2222
- name: Restore Conda env cache
23-
id: conda-cache
24-
uses: actions/cache@v3
23+
id: restore-conda-cache
24+
uses: actions/cache/restore@v3
2525
with:
2626
path: |
2727
${{ env.CONDA_ENV_PATH }}
28-
key: ${{ env.RUN_STAMP }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
28+
key: ${{ env.RUN_STAMP }}-conda-pytest-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
2929
restore-keys: |
30-
${{ env.RUN_STAMP }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-
30+
${{ env.RUN_STAMP }}-conda-pytest-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-
3131
3232
- name: Update Conda env
3333
if: steps.conda-cache.cache-hit != 'true'
3434
run: |
3535
conda update conda
3636
conda env update -f omniscidb/scripts/mapd-deps-conda-dev-env.yml
3737
38+
- name: Save Conda env cache
39+
id: save-conda-cache
40+
uses: actions/cache/save@v3
41+
with:
42+
path: |
43+
${{ env.CONDA_ENV_PATH }}
44+
key: ${{ env.RUN_STAMP }}-conda-pytest-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
45+
3846
- name: Restore Maven cache
3947
uses: actions/cache@v3
4048
with:

0 commit comments

Comments
 (0)