-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (35 loc) · 1.09 KB
/
ci.yml
File metadata and controls
43 lines (35 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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,neutronics]
- 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 reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: LIBRA-project/libra-toolbox