Skip to content

DRAFT: Fix issues with ubuntu-latest CI actions with PR#241 #410

DRAFT: Fix issues with ubuntu-latest CI actions with PR#241

DRAFT: Fix issues with ubuntu-latest CI actions with PR#241 #410

Workflow file for this run

name: CI
on:
push:
branches:
- main
- develop
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" ]
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@v4
with:
token: ${{ github.token }}
- name: Conda setup (ubuntu)
uses: conda-incubator/setup-miniconda@v3
if: matrix.os == 'ubuntu-latest'
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@v3
if: matrix.os == 'macos-latest'
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 list
run: |
conda list
- name: Build WRF-Python
run: |
cd build_scripts
./gnu_omp.sh
cd ..
- name: Run tests
run: |
cd test/ci_tests
python utests.py