Skip to content

Commit 6532d9e

Browse files
authored
Merge pull request #60 from pshriwise/gha_updates
GHA Updates
2 parents 5cb70cd + 8275e76 commit 6532d9e

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
- master
11+
push:
12+
branches:
13+
- develop
14+
- master
15+
16+
env:
17+
OMP_NUM_THREADS: 2
18+
QT_QPA_PLATFORM: offscreen
19+
20+
jobs:
21+
ci:
22+
runs-on: ubuntu-latest
23+
container: openmc/openmc:develop
24+
steps:
25+
-
26+
name: Apt dependencies
27+
shell: bash
28+
run: |
29+
apt update
30+
apt install -y libglu1-mesa
31+
-
32+
uses: actions/checkout@v2
33+
-
34+
name: Install
35+
shell: bash
36+
run: |
37+
cd ${GITHUB_WORKSPACE}
38+
pip install .[test]
39+
-
40+
name: Test
41+
shell: bash
42+
run: |
43+
cd ${GITHUB_WORKSPACE}
44+
pytest -v tests

.github/workflows/python-publish-testpypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: Upload Python Package
88
on:
99
push:
1010
branches:
11-
- develop
11+
- master
1212

1313
jobs:
1414
deploy:

0 commit comments

Comments
 (0)