There was an error while loading. Please reload this page.
1 parent a0dccbe commit 4a6f0d0Copy full SHA for 4a6f0d0
1 file changed
.github/workflows/py-sanity-check.yml
@@ -14,14 +14,19 @@ jobs:
14
with:
15
auto-update-conda: true
16
python-version: 3.9.1
17
- - name: Create diff_check conda environment
18
- run: |
19
- conda env create -f environment.yml
20
- name: Cache conda environment cache
21
uses: actions/cache@v2
22
23
path: C:\Miniconda\envs\diff_check
24
key: ${{ runner.os }}-conda-${{ hashFiles('environment.yml') }}
+ restore-keys: |
+ ${{ runner.os }}-conda-
+ 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
30
31
- name: Cache pre-commit hooks
32
0 commit comments