Skip to content

Commit 92b3a37

Browse files
authored
Merge pull request #914 from benjeffery/fix-OSX
Fix OSX tests
2 parents 16919ff + 474984d commit 92b3a37

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

.github/workflows/tests.yml

+3-17
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,11 @@ jobs:
5151
id: cache
5252
uses: actions/cache@v3
5353
with:
54-
path: |
55-
c:\Miniconda\envs\anaconda-client-env
56-
/usr/share/miniconda/envs/anaconda-client-env
57-
~/osx-conda
58-
~/.profile
59-
key: ${{ runner.os }}-${{ matrix.python}}-conda-v16-${{ hashFiles('requirements/CI-tests-conda/requirements.txt')}}
54+
path: ${{ env.CONDA }}/envs
55+
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.python}}-conda-v1-${{ hashFiles('requirements/CI-tests-conda/requirements.txt')}}
6056

6157
- name: Install Miniconda with Mamba
62-
uses: conda-incubator/setup-miniconda@v2
58+
uses: conda-incubator/setup-miniconda@v3
6359
if: steps.cache.outputs.cache-hit != 'true'
6460
with:
6561
activate-environment: anaconda-client-env
@@ -94,16 +90,6 @@ jobs:
9490
conda activate anaconda-client-env
9591
pip install cyvcf2==0.30.18
9692
97-
- name: Fix OSX Cache Write #OSX Won't let the cache restore due to file perms
98-
if: steps.cache.outputs.cache-hit != 'true' && matrix.os == 'macos-latest'
99-
run: |
100-
cp -r /usr/local/miniconda/envs/anaconda-client-env ~/osx-conda
101-
102-
- name: Fix OSX Cache Restore
103-
if: steps.cache.outputs.cache-hit == 'true' && matrix.os == 'macos-latest'
104-
run: |
105-
mkdir -p /usr/local/miniconda/envs
106-
sudo cp -r ~/osx-conda /usr/local/miniconda/envs/anaconda-client-env
10793
10894
- name: Build module
10995
run: |

0 commit comments

Comments
 (0)