forked from arfc/openmcyclus
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (44 loc) · 1.34 KB
/
unit-test.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: unit-tests
on: [push]
jobs:
build-and-unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: openmcyclus-env
environment-file: environment.yml
use-mamba: true
- name: Conda config
run: |
conda config --env --set pip_interop_enabled True
- name: Update Environment
run: |
pip install pytest
mamba env update -n openmcyclus-env -f environment.yml
- name: Install numpy
run: |
sudo apt install python3-pip
pip3 install numpy
- name: Install OpenMC cross section library
run:
$GITHUB_WORKSPACE/openmc-xs.bash
- name: Install OpenMC from Mamba
run:
mamba install openmc
- name: Install OpenMC cross section library
run:
echo "OPENMC_CROSS_SECTIONS=cross_sections.xml" >> $GITHUB_ENV
- name: Install OpenMCyclus
run: |
pip install .
- name: Checking the environment
run: conda info
- name: Run Tests
run: |
conda info
pytest tests/unit_tests/test_depletion.py