Skip to content

Commit

Permalink
Merge branch 'main' into adding_toko_icf
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell authored Mar 20, 2024
2 parents 0a8b773 + aea8690 commit 76c4a7e
Show file tree
Hide file tree
Showing 53 changed files with 428 additions and 588 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ runs:
sudo apt-get upgrade -y
sudo apt-get install -y libgl1-mesa-glx libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libosmesa6 libosmesa6-dev libgles2-mesa-dev libarchive-dev libpangocairo-1.0-0
mamba activate
mamba install -y -c conda-forge moab gmsh python-gmsh "openmc=0.14.0=dagmc*nompi*"
pip install git+https://github.com/CadQuery/cadquery.git
pip install cad_to_dagmc openmc_data_downloader
pip install --pre CAD_to_OpenMC
mamba install -y -c conda-forge moab>=5.3.0 gmsh python-gmsh "openmc=0.14.0=dagmc*nompi*"
pip install cadquery-ocp==7.7.2
pip install cadquery==2.4.0
pip install cad_to_dagmc
pip install openmc_data_downloader
openmc_data_downloader -l ENDFB-7.1-NNDC -i Fe56 Be9
pip install .[tests]
26 changes: 26 additions & 0 deletions .github/actions/dependencies_cad_to_openmc/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: composite action
description: builds
runs:
using: "composite"
steps:
- name: Checkout repository
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"
sudo apt-get --allow-releaseinfo-change update
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y libgl1-mesa-glx libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libosmesa6 libosmesa6-dev libgles2-mesa-dev libarchive-dev libpangocairo-1.0-0
mamba activate
mamba install -y -c conda-forge "openmc=0.14.0=dagmc*nompi*"
pip install CAD_to_OpenMC
pip install openmc_data_downloader
openmc_data_downloader -l ENDFB-7.1-NNDC -i Fe56 Be9
pip install .[tests]
5 changes: 3 additions & 2 deletions .github/workflows/circular_torus_cad_to_dagmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_dagmc

- shell: bash
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/circular_torus_cad_to_openmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_openmc

- shell: bash
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/cuboid_cad_to_dagmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_dagmc

- shell: bash
env:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/cuboid_cad_to_openmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
testing:
runs-on: ubuntu-latest
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_openmc

- shell: bash
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/cylinder_cad_to_dagmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_dagmc

- shell: bash
env:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/cylinder_cad_to_openmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_openmc

- shell: bash
env:
Expand All @@ -26,4 +27,4 @@ jobs:
source "${HOME}/conda/etc/profile.d/conda.sh"
source "${HOME}/conda/etc/profile.d/mamba.sh"
mamba activate
pytest tests/test_cad_to_dagmc/test_csg_cad_cylinder.py
pytest tests/test_cad_to_openmc/test_csg_cad_cylinder.py
6 changes: 3 additions & 3 deletions .github/workflows/elliptical_torus_cad_to_dagmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
testing:
runs-on: ubuntu-latest
Expand All @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_dagmc

- shell: bash
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/elliptical_torus_cad_to_openmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_openmc

- shell: bash
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/nested_cylinder_cad_to_dagmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_dagmc

- shell: bash
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/nested_cylinder_cad_to_openmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_openmc

- shell: bash
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/nested_sphere_cad_to_dagmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_dagmc

- shell: bash
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/nested_sphere_cad_to_openmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_openmc

- shell: bash
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/sphere_cad_to_dagmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_dagmc

- shell: bash
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/sphere_cad_to_openmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_openmc

- shell: bash
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/two_touching_cuboids_cad_to_dagmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_dagmc

- shell: bash
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/two_touching_cuboids_cad_to_openmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- develop
- main
push:
push:
branches:
- main

jobs:
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: use upstream test composite action
uses: ./.github/actions/dependencies
uses: ./.github/actions/dependencies_cad_to_openmc

- shell: bash
env:
Expand Down
Loading

0 comments on commit 76c4a7e

Please sign in to comment.