Skip to content

Making use of faster binary brep export #64

Making use of faster binary brep export

Making use of faster binary brep export #64

# 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