added conda install instructions for OpenMC #163
Workflow file for this run
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: CI | |
on: [pull_request, push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: myenv | |
miniforge-version: latest | |
# use-mamba: true | |
channels: conda-forge | |
- name: Create Conda environment | |
shell: bash -l {0} | |
run: | | |
conda install -c conda-forge openmc>=0.14.0 | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
python -m pip install .[tests] | |
- name: Run tests | |
shell: bash -l {0} | |
run: | | |
python -m pytest test/ --cov libra_toolbox --cov-report xml --cov-report term | |
- name: Run notebook examples | |
shell: bash -l {0} | |
run: | | |
jupyter nbconvert --to python --execute docs/examples/*.ipynb | |
# - name: Upload coverage to Codecov | |
# uses: codecov/codecov-action@v4 | |
# with: | |
# token: ${{ secrets.CODECOV_TOKEN }} |