diff --git a/.coveragerc b/.coveragerc index 56bf64677..fd25fbcd3 100644 --- a/.coveragerc +++ b/.coveragerc @@ -7,7 +7,7 @@ omit = venv/ source = armi # change default .coverage file to something that doesn't have a dot -# because our Windows file server can't handle dots. :s +# because the Windows file server can't handle dots. data_file = coverage_results.cov [coverage:run] diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index ff649d108..aa18e74da 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -9,6 +9,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} steps: - uses: actions/checkout@v2 @@ -25,5 +26,16 @@ jobs: - name: Run Coverage Part 1 run: tox -e cov1 || true - name: Run Coverage Part 2 - run: tox -e cov2,report + run: tox -e cov2 + - 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: Publish to coveralls.io + uses: coverallsapp/github-action@v1.1.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: lcov.txt diff --git a/tox.ini b/tox.ini index ee9e6a74a..45cdf0bb4 100644 --- a/tox.ini +++ b/tox.ini @@ -76,14 +76,13 @@ commands = [testenv:report] skip_install = true deps= - coveralls + pip>=20.2 + mpi4py + -r{toxinidir}/requirements.txt + -r{toxinidir}/requirements-testing.txt commands = coverage report coverage html - coveralls --service=github -depends = - cov -passenv = TOXENV CI GITHUB_* [testenv:manifest] basepython = {env:PYTHON3_PATH:python3}