From 7635a8fe5dce14f3efdc542dbbed52b46f303f5a Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Fri, 19 Apr 2024 18:56:58 +0500 Subject: [PATCH] test: test coverage fix --- .github/workflows/ci.yml | 2 ++ Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0bbb384..c779ae55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,7 @@ jobs: - name: Run Tests env: TOXENV: ${{ matrix.toxenv }} + COVERAGE_TOKEN: ${{ secrets.CODECOV_TOKEN }} run: make validate - name: Make Static and Validate Translations env: @@ -48,6 +49,7 @@ jobs: if: matrix.python-version == '3.8' && matrix.toxenv=='django42' uses: codecov/codecov-action@v4 with: + file: ./coverage.xml flags: unittests fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} diff --git a/Makefile b/Makefile index e5d30f20..9a9c45b1 100644 --- a/Makefile +++ b/Makefile @@ -107,7 +107,7 @@ shell: ## Run Python shell with devstack settings python manage.py shell coverage: clean - $(TOX)pytest --cov-report html + $(TOX)pytest --cov-report html -t $(COVERAGE_TOKEN) test: clean ## run tests and generate coverage report $(TOX)pytest