-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (33 loc) · 892 Bytes
/
ci.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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -leo pipefail {0}
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: .github/environment.yml
init-shell: bash
- name: Clone OpenMC
run: |
git clone https://github.com/openmc-dev/openmc --branch v0.15.0 $HOME/openmc
- name: Install
run: |
python -m pip install .
- name: Test examples
run: |
micromamba activate test-env
OPENMC_EXAMPLES_DIR=$HOME/openmc/examples pytest -v ./test/test_examples.py
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3