-
Notifications
You must be signed in to change notification settings - Fork 6
74 lines (63 loc) · 2.41 KB
/
ci_with_conda_install.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This CI does includes particle transport tests as openmc is installed
name: CI with Conda install
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
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install system packages
run: |
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y libgl1 libglx-mesa0 libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libosmesa6 libosmesa6-dev libgles2-mesa-dev libarchive-dev libpangocairo-1.0-0
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: ci-env
miniforge-version: latest
channels: conda-forge
- name: install dependencies
shell: bash -l {0}
run: |
conda install -y -c conda-forge "openmc=0.15.0=dagmc*nompi*" trimesh networkx cadquery gmsh python-gmsh vtk
python -m pip install .[tests]
- name: Test import
shell: bash -l {0}
run: |
python -c "import cad_to_dagmc"
- name: Run tests
shell: bash -l {0}
run: |
pytest -v tests
- name: Run examples
shell: bash -l {0}
run: |
python examples/surface_mesh/cadquery_assembly.py
python examples/surface_mesh/cadquery_assembly_with_scaled_geometry.py
python examples/surface_mesh/cadquery_compound.py
python examples/surface_mesh/cadquery_object_and_stp_file.py
python examples/surface_mesh/cadquery_text.py
python examples/surface_mesh/curved_cadquery_object_to_dagmc_surface_mesh.py
python examples/surface_mesh/from_gmsh_mesh_file.py
python examples/surface_mesh/multiple_cadquery_objects.py
python examples/surface_mesh/multiple_stp_files.py
python examples/surface_mesh/single_cadquery_object.py
python examples/surface_mesh/single_stp_file_multiple_volumes.py
python examples/surface_mesh/single_stp_file.py
python examples/unstrucutred_volume_mesh/curved_cadquery_object_to_dagmc_volume_mesh.py
python examples/unstrucutred_volume_mesh/simulate_unstrucutred_volume_mesh_with_openmc.py