Skip to content

Commit

Permalink
separate OSX jobs
Browse files Browse the repository at this point in the history
OSX latest image nolonger has miniconda by default

actions/runner-images#9262 (comment)
  • Loading branch information
beachdweller committed Apr 28, 2024
1 parent f3a3504 commit 486e9f3
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/conda_env_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
os: [ubuntu-latest, windows-latest]
anaconda: ["2023.09"]
fail-fast: false
timeout-minutes: 30
Expand All @@ -101,7 +101,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
os: [ubuntu-latest, windows-latest]
anaconda: [nightly]
fail-fast: false
timeout-minutes: 20
Expand All @@ -118,6 +118,36 @@ jobs:
TEST_IPYNB_IGNORE_FOLDER: tutorial
run: bash ./.github/workflows/run_test.sh

test_ipynb_osx:
needs: badges
name: ${{ matrix.anaconda }} on OSX
runs-on: macOS-latest
strategy:
matrix:
anaconda: ["2023.09", nightly]
fail-fast: false
timeout-minutes: 20
steps:
- uses: actions/checkout@v4

- name: setup conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: test-environment
environment-file: ./tests/environment.${{ matrix.anaconda }}.yml

- name: pytest
env:
TEST_IPYNB_IGNORE_FOLDER: tutorial
run: |
conda init
source ~/.bashrc
conda env list
conda activate test-environment
conda list
python -m pytest --numprocesses=auto -k 'not (links or update_nmisp_py)' ./tests/
test_ipynb_colab:
needs: badges
name: test ipynb on Google Colab
Expand Down Expand Up @@ -155,7 +185,7 @@ jobs:
run: python -m pytest -n auto -k 'not (links or update_nmisp_py)' ./tests

update_nmisp_py:
needs: [test_ipynb, test_ipynb_nightly, test_ipynb_colab]
needs: [test_ipynb, test_ipynb_nightly, test_ipynb_osx, test_ipynb_colab]
name: Update nmisp_py
runs-on: ubuntu-latest
timeout-minutes: 5
Expand Down

0 comments on commit 486e9f3

Please sign in to comment.