Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coveralls integration #753

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,26 @@ jobs:
DJANGO_VERSION: ${{ matrix.django }}
- name: Migration check
run: docker-compose run web bash -c 'wait-for-it db:3306 && python manage.py makemigrations --check'

- name: Show settings
run: docker-compose run web python manage.py diffsettings
- name: Build test
run: docker-compose run web python manage.py test --keepdb --verbosity=2

- name: Run tests
run: docker-compose run web coverage run --source=. manage.py test --keepdb --verbosity=2

- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: .coverage
parallel: true

- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: .coverage
parallel-finished: true

docs:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ django-coverage-plugin==1.6.0
django-test-plus==1.3.1
vcrpy==2.1.0
ipdb==0.12.2
coverage==4.5.4
django-coverage-plugin==1.6.0