Skip to content

CI updates and add Python 3.11 remove Python 3.7 and 3.8 #157

CI updates and add Python 3.11 remove Python 3.7 and 3.8

CI updates and add Python 3.11 remove Python 3.7 and 3.8 #157

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Daily “At 00:00”
jobs:
test:
name: Python (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-latest", "macos-14", "windows-latest" ]
python-version: [ "3.9", "3.10", "3.11" ]
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ github.token }}
- name: Conda setup
uses: conda-incubator/setup-miniconda@v2
if: {{ (matrix.os != 'macos-14' && matrix.os != 'windows-latest') }}

Check failure on line 34 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 34, Col: 13): A mapping was not expected
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
environment-file: build_envs/environment.yml
- name: Conda setup (macOS M1)
uses: conda-incubator/setup-miniconda@v2
if: matrix.os == 'macos-14'
with:
installer-url: https://github.com/conda-forge/miniforge/releases/download/23.11.0-0/Mambaforge-23.11.0-0-MacOSX-arm64.sh
python-version: ${{ matrix.python-version }}
channels: conda-forge
environment-file: build_envs/environment.yml
- name: Conda setup (macOS M1)
uses: conda-incubator/setup-miniconda@v2
if: matrix.os == 'windows-latest'
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
environment-file: build_envs/platform-specific/windows.yml
- name: Build WRF-Python
if: matrix.os != 'windows-latest'
run: |
cd build_scripts
./gnu_omp.sh
cd ..
- name: Build WRF-Python (Windows)
if: matrix.os == 'windows-latest'
run: |
cd build_scripts
./win_msvc_mingw_no_omp.bat
cd ..
- name: Run tests
run: |
cd test/ci_tests
python utests.py