moved imports to later in code #10
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
name: sphere | |
on: | |
pull_request: | |
branches: | |
- develop | |
- 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 dependencies | |
run: | | |
apt-get --allow-releaseinfo-change update | |
apt-get update -y | |
apt-get upgrade -y | |
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 | |
conda install -y -c conda-forge mamba | |
mamba install -y -c cadquery -c conda-forge moab gmsh python-gmsh cadquery=master "openmc=0.13.3=dagmc*nompi*" | |
pip install cad_to_dagmc openmc_data_downloader | |
openmc_data_downloader -l ENDFB-7.1-NNDC -i Fe56 Be9 | |
pwd | |
- name: install package with tests | |
run: | | |
pip install .[tests] | |
- name: Run tests | |
env: | |
OPENMC_CROSS_SECTIONS: /__w/model_benchmark_zoo/model_benchmark_zoo/cross_sections.xml | |
run: | | |
pytest tests/test_csg_cad_sphere.py |