Skip to content

Commit

Permalink
run coveralls outside of the testing container
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Sep 28, 2021
1 parent 79b6a3a commit fea15d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
relative_files = True
12 changes: 11 additions & 1 deletion .github/workflows/tests_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,17 @@ jobs:
-e "GITHUB_RUN_ID=$GITHUB_RUN_ID"
-e "GITHUB_TOKEN=$GITHUB_TOKEN"
"${IMAGE_NAME}"
bash -c "coverage run --source=./geospaas_adas_viewer runtests.py && coveralls"
bash -c "coverage run --source=./geospaas_adas_viewer runtests.py"
- name: 'Install Python 3.7'
uses: actions/setup-python@v2
with:
python-version: '3.7'

- name: 'Upload coverage to coveralls.io'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pip install coveralls && coveralls --service=github

- name: 'Build Python package'
if: github.event_name == 'release'
Expand Down

0 comments on commit fea15d6

Please sign in to comment.