added check for length of 28 chars #51
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 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 | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: install non pypi 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 libglx-mesa0 libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libosmesa6 libosmesa6-dev libgles2-mesa-dev libarchive-dev libpangocairo-1.0-0 | |
mamba activate | |
mamba create -y --name cad_to_dagmc python=${{ matrix.python-version }} | |
mamba activate cad_to_dagmc | |
mamba install -y -c conda-forge "openmc=0.15.0=dagmc*nompi*" trimesh networkx cadquery gmsh python-gmsh | |
python -m ensurepip --upgrade | |
python -m pip install . --no-deps | |
python -c "import cad_to_dagmc" | |
mamba install -y -c conda-forge pytest vtk | |
python -m pip install .[tests] --no-deps | |
pytest -v tests | |
python examples/surface_mesh/cadquery_assembly.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/multiple_cadquery_objects.py | |
python examples/surface_mesh/multiple_stp_files.py | |
python examples/surface_mesh/single_stp_file_multiple_volumes.py | |
python examples/surface_mesh/single_cadquery_object.py | |
python examples/surface_mesh/single_stp_file.py | |
python examples/surface_mesh/from_gmsh_mesh_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 | |
python examples/surface_mesh/cadquery_assembly_with_scaled_geometry.py |