updates serpent tools dependency and pins python version #834
This file contains hidden or 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
| # Preamble | |
| name: Test SaltProc | |
| on: | |
| push: | |
| paths: | |
| - 'saltproc/**' | |
| - 'tests/**' | |
| pull_request: | |
| workflow_run: | |
| workflows: ["Cache dependencies"] | |
| types: [completed] | |
| # enable worflow to be run manually | |
| workflow_dispatch: | |
| env: | |
| CACHE_NUMBER: 0 #change to manually reset cache | |
| jobs: | |
| test-saltproc: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| env: | |
| MPI: no | |
| OMP: no | |
| PHDF5: no | |
| DAGMC: no | |
| EVENT: no | |
| VECTFIT: no | |
| LIBMESH: no | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Setup conda | |
| - name: Set up conda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| miniforge-version: latest | |
| channels: conda-forge | |
| activate-environment: saltproc-env | |
| use-mamba: true | |
| use-only-tar-bz2: true | |
| - run: | | |
| conda config --env --set pip_interop_enabled True | |
| # check for existing cache | |
| - name: Set cache date | |
| run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV | |
| - uses: actions/cache@v4 | |
| id: dependencies-cache | |
| with: | |
| path: | | |
| /usr/share/miniconda3/envs/saltproc-env | |
| ~/endfb71_hdf5 | |
| ~/.cache/pip | |
| key: depcache-${{ hashFiles('environment.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }} | |
| # Install dependencies | |
| - name: Update environment | |
| run: mamba env update -n saltproc-env -f environment.yml | |
| if: steps.dependencies-cache.outputs.cache-hit != 'true' | |
| - name: Install OpenMC cross section library | |
| if: steps.dependencies-cache.outputs.cache-hit != 'true' | |
| run: $GITHUB_WORKSPACE/scripts/ci/openmc-xs.bash | |
| - name: Install SaltProc | |
| run: pip install . | |
| - name: Environment variables | |
| run: | | |
| echo "OPENMC_CROSS_SECTIONS=$HOME/endfb71_hdf5/cross_sections.xml" >> $GITHUB_ENV | |
| - name: Test SaltProc | |
| run: | | |
| pytest --ignore tests/integration_tests/run_no_reprocessing_serpent --ignore tests/integration_tests/run_no_reprocessing_openmc --ignore tests/integration_tests/run_constant_reprocessing_serpent --ignore tests/integration_tests/run_constant_reprocessing_openmc tests/ |