Skip to content

JOSS submission [do not merge] #265

JOSS submission [do not merge]

JOSS submission [do not merge] #265

Workflow file for this run

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
python examples/plot_tokamak_ion_temperature.py
python examples/plot_tokamak_neutron_source_density.py
python examples/plot_tokamak_neutron_source_strengths.py