Skip to content

Commit 4a6f0d0

Browse files
committed
WIP: testing cache conda x1
1 parent a0dccbe commit 4a6f0d0

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/py-sanity-check.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,19 @@ jobs:
1414
with:
1515
auto-update-conda: true
1616
python-version: 3.9.1
17-
- name: Create diff_check conda environment
18-
run: |
19-
conda env create -f environment.yml
2017
- name: Cache conda environment cache
2118
uses: actions/cache@v2
2219
with:
2320
path: C:\Miniconda\envs\diff_check
2421
key: ${{ runner.os }}-conda-${{ hashFiles('environment.yml') }}
22+
restore-keys: |
23+
${{ runner.os }}-conda-
24+
id: cache-conda
25+
26+
- name: Create diff_check conda environment if not cached
27+
if: steps.cache-conda.outputs.cache-hit != 'true'
28+
run: |
29+
conda env create -f environment.yml
2530
2631
- name: Cache pre-commit hooks
2732
uses: actions/cache@v2

0 commit comments

Comments
 (0)