Skip to content

Commit 863ba6e

Browse files
committed
Adding GHA CI file.
1 parent 4d6f307 commit 863ba6e

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
# allows us to run workflows manually
5+
workflow_dispatch:
6+
7+
pull_request:
8+
branches:
9+
- develop
10+
- main
11+
push:
12+
branches:
13+
- develop
14+
- main
15+
16+
env:
17+
OMP_NUM_THREADS: 2
18+
QT_QPA_PLATFORM: offscreen
19+
20+
jobs:
21+
ci:
22+
container: openmc/openmc:v0.12.1
23+
24+
steps:
25+
-
26+
name: Apt dependencies
27+
shell: bash
28+
run: sudo apt install -y libgl1-mesa
29+
-
30+
uses: actions/checkout@v2
31+
-
32+
name: Install
33+
shell: bash
34+
run: |
35+
cd ${GITHUB_WORKSPACE}
36+
pip install .[test]
37+
-
38+
name: Test
39+
shell: bash
40+
run: |
41+
cd ${GITHUB_WORKSPACE}
42+
pytest -v tests

0 commit comments

Comments
 (0)