aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-08-21 23:24:20 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-09-30 18:48:07 +0400
commitf6f97de8cc0ae2f8a5036175aa4fb14cf2be2ac8 (patch)
tree9017d1f0b4f77418621b78b80c57d81987d4eb55 /.github
parentAdd Dependabot (diff)
Switch To Coveralls Action
The coveralls package has consistently caused issues for us, so it made sense to switch to something that's a little more decoupled, especially when it has official support. Switching is simple, since coverage.py can natively generate the format used by the coveralls action, and everything else is plug and play. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lint-test.yaml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml
index 168a8383..f82e1d4f 100644
--- a/.github/workflows/lint-test.yaml
+++ b/.github/workflows/lint-test.yaml
@@ -49,6 +49,7 @@ jobs:
python manage.py makemigrations --check
coverage run manage.py test --no-input
coverage report -m
+ coverage lcov
env:
CI: True
DATABASE_URL: postgres://pysite:pysite@localhost:7777/pysite
@@ -56,11 +57,12 @@ jobs:
PYTHONWARNINGS: error
# This step will publish the coverage reports coveralls.io and
- # print a "job" link in the output of the GitHub Action
- - name: Publish coverage report to coveralls.io
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: coveralls
+ # link the report to the commit
+ - name: Publish Coverage Report
+ uses: coverallsapp/[email protected]
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ path-to-lcov: ./coverage.lcov
- name: Tear down docker-compose containers
run: docker-compose stop