-
Notifications
You must be signed in to change notification settings - Fork 11
33 lines (28 loc) · 921 Bytes
/
ci.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
name: CI testing
on:
pull_request:
push:
branches:
- main
jobs:
testing:
runs-on: ubuntu-latest
steps:
- name: checkout actions
uses: actions/checkout@v4
- name: install dependencies
shell: bash
run: |
wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3.sh -b -p "${HOME}/conda"
source "${HOME}/conda/etc/profile.d/conda.sh"
source "${HOME}/conda/etc/profile.d/mamba.sh"
mamba activate
mamba install -y -c conda-forge openmc
pip install .
python -c "import openmc_plasma_source"
pip install .[tests]
pytest -v tests
python examples/point_source_example.py
python examples/ring_source_example.py
python examples/tokamak_source_example.py