CI updates and add Python 3.11 remove Python 3.7 and 3.8 #151
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] | |
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 | |
with: | |
activate-environment: wrf_python_build | |
python-version: ${{ matrix.python-version }} | |
channels: conda-forge | |
- name: Conda install (macOS - Intel) | |
if: matrix.os == 'macos-latest' | |
run: | | |
conda env update --file build_envs/Darwin.yml --prune | |
- name: Conda install (macOS - ARM) | |
if: matrix.os == 'macos-14' | |
run: | | |
conda env update --file build_envs/environment.yml --prune | |
- name: Conda install (Linux) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
conda env update --file build_envs/Linux.yml --prune | |
- name: Build WRF-Python | |
run: | | |
cd build_scripts | |
./gnu_omp.sh | |
cd .. | |
- name: Run tests | |
run: | | |
cd test/ci_tests | |
python utests.py |