-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from shimwell/develop
adds CI
- Loading branch information
Showing
7 changed files
with
130 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
# This CI will launch a Docker image that contains all the dependencies required | ||
# within that image the pytest test suite is run | ||
|
||
|
||
name: CI with install | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
- main | ||
|
||
jobs: | ||
testing: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: continuumio/miniconda3 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: install dependencies package | ||
run: | | ||
apt update -y | ||
apt-get install ffmpeg libsm6 libxext6 -y | ||
- name: create environment 1 | ||
run: | | ||
conda env create -f environment_cad.yml | ||
conda init bash | ||
.source ~/.bashrc | ||
conda activate env_cad | ||
- name: conda init | ||
run: | | ||
bash -i conda_init_for_ci.sh | ||
- name: run script 1 of 3 | ||
run: | | ||
python 1_creation_of_dagmc_geometry.py | ||
- name: create environment 1 | ||
run: | | ||
conda env create -f environment_neutronics.yml | ||
conda init bash | ||
.source ~/.bashrc | ||
conda activate env_neutronics | ||
- name: run script 2 of 3 | ||
run: | | ||
2_run_openmc_dagmc_simulation.py | ||
- name: run script 3 of 3 | ||
run: | | ||
3_extract_results.py |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,3 +127,12 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# output files | ||
*.h5m | ||
*.html | ||
*.xml | ||
*.h5 | ||
*.out | ||
*.xml | ||
*.vtk |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
conda init |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
name: env_cad | ||
channels: | ||
- fusion-energy | ||
- cadquery | ||
- conda-forge | ||
dependencies: | ||
- python=3.9 | ||
- paramak=0.7.2 | ||
- pip | ||
- pip: | ||
- jupyter-cadquery |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
|
||
name: env_neutronics | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.9 | ||
- openmc=0.13.0 | ||
- pip | ||
- pip: | ||
- openmc_data_downloader | ||
- openmc_mesh_tally_to_vtk |