Skip to content

Commit f6f97de

Browse files
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]>
1 parent e8d1fd7 commit f6f97de

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/lint-test.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,20 @@ jobs:
4949
python manage.py makemigrations --check
5050
coverage run manage.py test --no-input
5151
coverage report -m
52+
coverage lcov
5253
env:
5354
CI: True
5455
DATABASE_URL: postgres://pysite:pysite@localhost:7777/pysite
5556
METRICITY_DB_URL: postgres://pysite:pysite@localhost:7777/metricity
5657
PYTHONWARNINGS: error
5758

5859
# This step will publish the coverage reports coveralls.io and
59-
# print a "job" link in the output of the GitHub Action
60-
- name: Publish coverage report to coveralls.io
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
run: coveralls
60+
# link the report to the commit
61+
- name: Publish Coverage Report
62+
uses: coverallsapp/[email protected]
63+
with:
64+
github-token: ${{ secrets.GITHUB_TOKEN }}
65+
path-to-lcov: ./coverage.lcov
6466

6567
- name: Tear down docker-compose containers
6668
run: docker-compose stop

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pip-log.txt
3636
pip-delete-this-directory.txt
3737

3838
# Unit test / coverage reports
39+
*.lcov
3940
htmlcov/
4041
.tox/
4142
.coverage

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ flake8-todo = "0.7"
3939
pep8-naming = "0.13.1"
4040
pre-commit = "2.20.0"
4141
pyfakefs = "4.6.3"
42-
coveralls = "3.3.1"
4342
taskipy = "1.10.2"
4443
python-dotenv = "0.20.0"
4544

0 commit comments

Comments
 (0)