Improved energy distribution using NeSST #213
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 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 |