forked from Fusion-Power-Plant-Framework/bluemira
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.09 KB
/
examples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Runs the bluemira examples and checks for errors
name: bluemira_examples
on:
workflow_dispatch:
schedule:
# Runs every Monday at 04:37
- cron: "37 4 * * 1"
jobs:
examples:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Environment
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: bluemira
environment-file: conda/environment.yml
miniforge-version: "latest"
use-only-tar-bz2: false
miniforge-variant: Mambaforge
use-mamba: true
- name: Install bluemira
shell: bash -l {0}
run: pip install -e .
- name: Run examples
shell: bash -l {0}
run: |
# Exclude examples using plasmod or process, as these aren't available
# to the CI runners
python ./scripts/run_examples.py \
-e 'plasmod_example' \
-e 'process_example' \
-e 'solver_example' \
-e 'equilibria/fem_fixed_boundary' \
-e 'codes/ext_code_script'