Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coveralls token to GH action config. #1020

Merged
merged 12 commits into from
Dec 13, 2022
Merged
8 changes: 1 addition & 7 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,12 @@ jobs:
run: tox -e cov1 || true
- name: Run Coverage Part 2
run: tox -e cov2
- name: Covert Coverage Results
john-science marked this conversation as resolved.
Show resolved Hide resolved
- name: Convert Coverage Results
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
pip install coveragepy-lcov
coveragepy-lcov --data_file_path coverage_results.cov --output_file_path lcov.txt
# - name: Run Coverage Part 3
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# run: |
# pip install coveralls
# coveralls --service=github
- name: Publish to coveralls.io
uses: coverallsapp/github-action@v1.1.2
with:
Expand Down
1 change: 0 additions & 1 deletion requirements-testing.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
--prefer-binary
numpy>=1.21
coveralls

# docutils 0.17 introduced a bug that prevents bullets from rendering
# see https://github.com/terrapower/armi/issues/274
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ deps=
allowlist_externals =
/usr/bin/mpiexec
commands =
coverage run --rcfile=.coveragerc -m pytest -n 4 --cov=armi --cov-config=.coveragerc --cov-append --ignore=armi/utils/tests/test_gridGui.py --ignore=venv armi/tests/test_runLog.py
coverage run --rcfile=.coveragerc -m pytest -n 4 --cov=armi --cov-config=.coveragerc --cov-append --ignore=armi/utils/tests/test_gridGui.py --ignore=venv armi
coverage combine --rcfile=.coveragerc --keep -a
# coveralls --service=github

# NOTE: This only runs the MPI unit tests.
# NOTE: This will only work in POSIX/BASH Linux.
Expand Down