Skip to content

Test Demos

Test Demos #1489

Workflow file for this run

name: Test Demos
on:
workflow_dispatch:
schedule:
- cron: '02 23 * * *'
permissions: read-all
env:
OMP_NUM_THREADS: 1
SCOTCH_DETERMINISTIC: 1
SCOTCH_RANDOM_FIXED_SEED: 1
jobs:
serial_demos:
name: Serial demos
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Create conda environment
uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1
with:
environment-file: .github/conda/mpich.yml
miniforge-version: latest
python-version: 3.14
activate-environment: test
auto-activate: false
conda-remove-defaults: true
- name: Show conda info
run: conda info
- name: Show list of all installed packages
run: conda list
- name: Install package
run: |
pip install .[all]
- name: Run demos
run: |
python3 -m pytest -vv demos/test.py
parallel_demos:
name: Parallel demos
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Create conda environment
uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1
with:
environment-file: .github/conda/mpich.yml
miniforge-version: latest
python-version: 3.14
activate-environment: test
auto-activate: false
conda-remove-defaults: true
- name: Show conda info
run: conda info
- name: Show list of all installed packages
run: conda list
- name: Install package
run: |
pip install .[all]
- name: Run demos in parallel
run: |
python3 -m pytest -vv demos/test_mpi.py