Skip to content

Commit

Permalink
Merge pull request #60 from pshriwise/gha_updates
Browse files Browse the repository at this point in the history
GHA Updates
  • Loading branch information
paulromano authored Apr 15, 2021
2 parents 5cb70cd + 8275e76 commit 6532d9e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
# allows us to run workflows manually
workflow_dispatch:

pull_request:
branches:
- develop
- master
push:
branches:
- develop
- master

env:
OMP_NUM_THREADS: 2
QT_QPA_PLATFORM: offscreen

jobs:
ci:
runs-on: ubuntu-latest
container: openmc/openmc:develop
steps:
-
name: Apt dependencies
shell: bash
run: |
apt update
apt install -y libglu1-mesa
-
uses: actions/checkout@v2
-
name: Install
shell: bash
run: |
cd ${GITHUB_WORKSPACE}
pip install .[test]
-
name: Test
shell: bash
run: |
cd ${GITHUB_WORKSPACE}
pytest -v tests
2 changes: 1 addition & 1 deletion .github/workflows/python-publish-testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: Upload Python Package
on:
push:
branches:
- develop
- master

jobs:
deploy:
Expand Down

0 comments on commit 6532d9e

Please sign in to comment.