From b0f6ac6d5331903cb91d8649066b3be26ea875c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Fri, 20 Nov 2020 12:11:19 +0200 Subject: [PATCH] Add coveralls --- .github/workflows/django.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 797fa933..27430464 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -55,7 +55,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install braintree mysqlclient apprise + pip install apprise braintree coverage mysqlclient - name: Run Tests env: DB: ${{ matrix.db }} @@ -63,4 +63,19 @@ jobs: DB_PORT: ${{ matrix.db_port }} DB_PASSWORD: hunter2 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 \ No newline at end of file