Browse Source

Add coveralls

pull/453/head
Pēteris Caune 4 years ago
parent
commit
b0f6ac6d53
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 17 additions and 2 deletions
  1. +17
    -2
      .github/workflows/django.yml

+ 17
- 2
.github/workflows/django.yml View File

@ -55,7 +55,7 @@ jobs:
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
pip install braintree mysqlclient apprise
pip install apprise braintree coverage mysqlclient
- name: Run Tests - name: Run Tests
env: env:
DB: ${{ matrix.db }} DB: ${{ matrix.db }}
@ -63,4 +63,19 @@ jobs:
DB_PORT: ${{ matrix.db_port }} DB_PORT: ${{ matrix.db_port }}
DB_PASSWORD: hunter2 DB_PASSWORD: hunter2
run: | run: |
python manage.py test
coverage run --omit=*/tests/* --source=hc manage.py test
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.python-version }}-${{ matrix.db }}
parallel: true
finish:
needs: build
runs-on: ubuntu-20.04
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

Loading…
Cancel
Save