-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (50 loc) · 1.83 KB
/
ci_with_benchmarks.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI with model benchmark zoo
on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
- '.gitignore'
- '*.md'
- 'CITATION.cff'
- 'LICENSE.txt'
- 'readthedocs.yml'
push:
branches:
- main
jobs:
testing:
runs-on: ubuntu-latest
container:
image: continuumio/miniconda3:23.3.1-0
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: install non pypi dependencies for cad creation
shell: bash
run: |s
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 cadquery -c conda-forge moab gmsh python-gmsh cadquery=master "openmc=0.13.3=dagmc*nompi*"
mamba install -y -c conda-forge "openmc=0.13.3=dagmc*nompi*"
- name: install package
run: |
pip install .[tests]
pip install cad_to_dagmc openmc_data_downloader
openmc_data_downloader -l ENDFB-7.1-NNDC -i Fe56 Be9
- name: run benchmarks
env:
OPENMC_CROSS_SECTIONS: /__w/cad_to_dagmc/cad_to_dagmc/cross_sections.xml
run: |
git clone https://github.com/fusion-energy/model_benchmark_zoo.git
cd model_benchmark_zoo
pip install .
pytest tests/test_cad_to_dagmc