Skip to content

Commit

Permalink
test mac build and linux tests on 3.11 and 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns committed Mar 15, 2024
1 parent a99e81f commit 01fb886
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ env:
jobs:
build-osx:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
# skip scheduled runs from forks
if: ${{ !( github.repository != 'ReactionMechanismGenerator/RMG-Py' && github.event_name == 'schedule' ) }}
defaults:
Expand All @@ -62,13 +66,13 @@ jobs:
uses: actions/checkout@v3

# configures the mamba environment manager and builds the environment
- name: Setup Mambaforge Python 3.7
- name: Setup Mambaforge Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment.yml
miniforge-variant: Mambaforge
miniforge-version: latest
python-version: 3.7
python-version: ${{ matrix.python-version }}
activate-environment: rmg_env
use-mamba: true

Expand Down Expand Up @@ -99,6 +103,10 @@ jobs:
build-and-test-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
# skip scheduled runs from forks
if: ${{ !( github.repository != 'ReactionMechanismGenerator/RMG-Py' && github.event_name == 'schedule' ) }}
env:
Expand All @@ -112,15 +120,13 @@ jobs:
uses: actions/checkout@v3

# configures the mamba environment manager and builds the environment
- name: Patch Environment File
run: sed -i 's/ - conda-forge::julia>=1.8.5,!=1.9.0/ - conda-forge::julia=1.9.1/' environment.yml
- name: Setup Mambaforge Python 3.7
- name: Setup Mambaforge Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment.yml
miniforge-variant: Mambaforge
miniforge-version: latest
python-version: 3.7
python-version: ${{ matrix.python-version }}
activate-environment: rmg_env
use-mamba: true

Expand Down

0 comments on commit 01fb886

Please sign in to comment.