Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAIN] update gh-action runner from macOS12 to macOS14 #651

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
19 changes: 11 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
fail-fast: false
matrix:
# OS [ubuntu-latest, macos-latest, windows-latest]
os: [macos-12,macos-13]
os: [macos-13,macos-14]
python-version: [3.11]
steps:
- name: Get current year-month
Expand Down Expand Up @@ -162,15 +162,16 @@ jobs:
key: datasets-${{ steps.elephant-data.outputs.dataset_hash }}
restore-keys: datasets-

- uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # corresponds to v3.0.4
- uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # corresponds to v3.1.0
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge,defaults
channels: conda-forge
channel-priority: true
activate-environment: elephant
environment-file: requirements/environment-tests.yml
conda-remove-defaults: true

- name: Install dependencies
shell: bash -l {0}
Expand Down Expand Up @@ -383,22 +384,23 @@ jobs:
restore-keys: datasets-
enableCrossOsArchive: true

- uses: conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # corresponds to v3.0.3
- uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # corresponds to v3.1.0
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge,defaults
channels: conda-forge
channel-priority: true
activate-environment: elephant
environment-file: requirements/environment-tests.yml
conda-remove-defaults: true

- name: Install dependencies
shell: bash -el {0}
run: |
python --version
conda install mpi4py openmpi
mamba install pytest pytest-cov coveralls
conda install -c conda-forge mpi4py openmpi
Moritz-Alexander-Kern marked this conversation as resolved.
Show resolved Hide resolved
mamba install -c conda-forge pytest pytest-cov coveralls
pip install -e .

- name: List packages
Expand Down Expand Up @@ -455,13 +457,14 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-docs.txt') }}-${{ hashFiles('**/requirements-tutorials.txt') }}-${{ hashFiles('**/environment-docs.yml') }}
-${{ hashFiles('**/CI.yml') }}-${{ steps.date.outputs.date }}

- uses: conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # corresponds to v3.0.3
- uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # corresponds to v3.1.0
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
mamba-version: "*"
activate-environment: elephant
environment-file: requirements/environment.yml
conda-remove-defaults: true

- name: Install dependencies
shell: bash -el {0} # enables conda incubator to activate environment
Expand Down
Loading