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 e867543 commit ff0ba6c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,11 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements_test.txt
- name: Test with tox
- name: Run tests
run: tox -- --keepdb --parallel
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Run coverage
run: tox -e coverage
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 = run coveralls
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 ff0ba6c

Please sign in to comment.