Skip to content

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
pamella committed May 16, 2024
1 parent ad3b696 commit ee900ff
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ jobs:
pip install -r requirements_test.txt
- name: Test with tox
run: tox -- --keepdb --parallel
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
1 change: 0 additions & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ coverage==7.5.1
mock>=5.1.0
flake8>=7.0.0
tox>=4.15.0
codecov>=2.1.13
django-model-utils>=4.5.1
djangorestframework
model_mommy
15 changes: 15 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
requires =
tox>=4
envlist =
# Django official Python support
# Source: https://docs.djangoproject.com/en/5.0/faq/install/#what-python-version-can-i-use-with-django
{py38,py39,py310,py311,py312}-django42
{py310,py311,py312}-django50
coverage

[testenv]
description = run tests
Expand All @@ -20,3 +23,15 @@ basepython =
py310: python3.10
py39: python3.9
py38: python3.8

[testenv:coverage]
description = generate coverage report
passenv = COVERALLS_REPO_TOKEN
allowlist_externals = coverage
basepython = python3.12
deps =
{[testenv]deps}
coveralls
commands =
coverage run --source celerybeat_status runtests.py {posargs}
coveralls

0 comments on commit ee900ff

Please sign in to comment.