Skip to content

Commit

Permalink
Merge ca2eed2 into ad5b155
Browse files Browse the repository at this point in the history
  • Loading branch information
youngmit committed Jul 20, 2021
2 parents ad5b155 + ca2eed2 commit 3d09a05
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/coverage.yaml
@@ -0,0 +1,26 @@
name: Coverage

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-20.04

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install mpi libs
run: sudo apt-get -y install libopenmpi-dev
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
# Run tox using the version of Python in `PATH`
run: tox -e cov,report

5 changes: 3 additions & 2 deletions tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = py36,py37,lint,cov
envlist = py37,lint,cov
# need pip at least with --prefer-binary
requires =
pip >= 20.2
Expand All @@ -11,6 +11,7 @@ deps=
-r{toxinidir}/requirements-testing.txt
setenv =
PYTHONPATH = {toxinidir}
USERNAME = armi
commands =
pytest --ignore=armi/utils/tests/test_gridGui.py {posargs} armi

Expand All @@ -33,7 +34,7 @@ deps=
commands =
coverage report
coverage html
coveralls
coveralls --service=github
depends =
cov
passenv = TOXENV CI GITHUB_*
Expand Down

0 comments on commit 3d09a05

Please sign in to comment.