aboutsummaryrefslogtreecommitdiffstats
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
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]>
-rw-r--r--.github/workflows/lint-test.yaml12
-rw-r--r--.gitignore1
-rw-r--r--pyproject.toml1
3 files changed, 8 insertions, 6 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
diff --git a/.gitignore b/.gitignore
index 4fc4417d..911acdcf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -36,6 +36,7 @@ pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
+*.lcov
htmlcov/
.tox/
.coverage
diff --git a/pyproject.toml b/pyproject.toml
index 1f78ef2d..382b31d9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -39,7 +39,6 @@ flake8-todo = "0.7"
pep8-naming = "0.13.1"
pre-commit = "2.20.0"
pyfakefs = "4.6.3"
-coveralls = "3.3.1"
taskipy = "1.10.2"
python-dotenv = "0.20.0"