From 7bee5facbc30a358996fda66b96db45df51657ee Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 9 Feb 2021 19:39:22 +0100 Subject: [PATCH] adding coverage --- .github/workflows/django.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 92a51a13..9e789af7 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -57,7 +57,10 @@ jobs: run: | # orchestra-admin startproject panel django-admin.py startproject panel --template=orchestra/conf/ribaguifi_template -v3 - python panel/manage.py test orchestra --noinput -v3 + #python panel/manage.py test orchestra --noinput -v3 + coverage run --source='orchestra' panel/manage.py test orchestra --noinput -v3 + coverage report + coverage xml env: SECRET_KEY: zrhnooq6)sb+0+xb)(o0rvbf5)a(vc8ncv&1&kng@3i_pmx3oy @@ -67,4 +70,7 @@ jobs: POSTGRES_HOST: postgres POSTGRES_PORT: 5432 - + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }}