@@ -134,7 +134,7 @@ jobs:
134134 fail-fast : false
135135 matrix :
136136 # OS [ubuntu-latest, macos-latest, windows-latest]
137- os : [macos-12 ,macos-13 ]
137+ os : [macos-13 ,macos-14 ]
138138 python-version : [3.11]
139139 steps :
140140 - name : Get current year-month
@@ -144,7 +144,7 @@ jobs:
144144145145
146146 - name : Cache conda
147- uses : actions/cache@v3
147+ uses : actions/cache@v4
148148 with :
149149 path : ~/conda_pkgs_dir
150150 key : ${{ runner.os }}-conda-${{hashFiles('requirements/environment.yml') }}-${{ hashFiles('**/CI.yml') }}-${{ steps.date.outputs.date }}
@@ -162,15 +162,16 @@ jobs:
162162 key : datasets-${{ steps.elephant-data.outputs.dataset_hash }}
163163 restore-keys : datasets-
164164
165- - uses : conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # corresponds to v3.0.4
165+ - uses : conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # corresponds to v3.1.0
166166 with :
167167 auto-update-conda : true
168168 python-version : ${{ matrix.python-version }}
169169 mamba-version : " *"
170- channels : conda-forge,defaults
170+ channels : conda-forge
171171 channel-priority : true
172172 activate-environment : elephant
173173 environment-file : requirements/environment-tests.yml
174+ conda-remove-defaults : true
174175
175176 - name : Install dependencies
176177 shell : bash -l {0}
@@ -363,7 +364,7 @@ jobs:
363364 echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
364365
365366 - name : Cache pip
366- uses : actions/cache@v3
367+ uses : actions/cache@v4
367368 with :
368369 path : ${{ steps.pip-cache.outputs.dir }}
369370
@@ -383,22 +384,22 @@ jobs:
383384 restore-keys : datasets-
384385 enableCrossOsArchive : true
385386
386- - uses : conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # corresponds to v3.0.3
387+ - uses : conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # corresponds to v3.1.0
387388 with :
388389 auto-update-conda : true
389390 python-version : ${{ matrix.python-version }}
390391 mamba-version : " *"
391- channels : conda-forge,defaults
392+ channels : conda-forge
392393 channel-priority : true
393394 activate-environment : elephant
394395 environment-file : requirements/environment-tests.yml
396+ conda-remove-defaults : true
395397
396398 - name : Install dependencies
397399 shell : bash -el {0}
398400 run : |
399401 python --version
400- conda install mpi4py openmpi
401- mamba install pytest pytest-cov coveralls
402+ mamba install -c conda-forge pytest pytest-cov coveralls mpi4py openmpi
402403 pip install -e .
403404
404405 - name : List packages
@@ -448,28 +449,29 @@ jobs:
448449 echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
449450
450451 - name : Cache pip
451- uses : actions/cache@v3
452+ uses : actions/cache@v4
452453 with :
453454 path : ${{ steps.pip-cache.outputs.dir }}
454455 # Look to see if there is a cache hit for the corresponding requirements files
455456 key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements-docs.txt') }}-${{ hashFiles('**/requirements-tutorials.txt') }}-${{ hashFiles('**/environment-docs.yml') }}
456457 -${{ hashFiles('**/CI.yml') }}-${{ steps.date.outputs.date }}
457458
458- - uses : conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # corresponds to v3.0.3
459+ - uses : conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # corresponds to v3.1.0
459460 with :
460461 auto-update-conda : true
461462 python-version : ${{ matrix.python-version }}
462463 mamba-version : " *"
463464 activate-environment : elephant
464465 environment-file : requirements/environment.yml
466+ conda-remove-defaults : true
465467
466468 - name : Install dependencies
467469 shell : bash -el {0} # enables conda incubator to activate environment
468470 run : |
469471 sudo apt-get update
470472 sudo apt install -y libopenmpi-dev openmpi-bin
471473
472- conda install -c conda-forge openmpi pandoc libstdcxx-ng # fix libstdc++.so.6: version for new scipy versions > 1.9.1
474+ mamba install -c conda-forge openmpi pandoc libstdcxx-ng # fix libstdc++.so.6: version for new scipy versions > 1.9.1
473475 mamba env update --file requirements/environment-docs.yml --name elephant
474476 python -m pip install --upgrade pip
475477 pip install -e .[extras,tutorials,docs]
@@ -513,7 +515,7 @@ jobs:
513515 python-version : ${{ matrix.python-version }}
514516
515517 - name : Cache test_env
516- uses : actions/cache@v3
518+ uses : actions/cache@v4
517519 with :
518520 path : ~/test_env
519521 # Look to see if there is a cache hit for the corresponding requirements files
0 commit comments