From efed05cff396f40ea1e585dd340003b6d411a5dd Mon Sep 17 00:00:00 2001 From: Ali Aliyev Date: Sun, 3 Nov 2024 09:24:00 +0400 Subject: [PATCH] feat: added test analytics for codecov and updated ci jobs --- .github/workflows/ci.yml | 13 +++++++++---- .gitignore | 1 + setup.cfg | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d6b792..0dc0549 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,12 @@ jobs: runs-on: ubuntu-latest needs: test steps: - - name: Upload test coverage - run: codecov - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.gitignore b/.gitignore index edf536b..749f0d1 100644 --- a/.gitignore +++ b/.gitignore @@ -47,6 +47,7 @@ htmlcov/ .cache nosetests.xml coverage.xml +junit.xml *.cover .hypothesis/ .pytest_cache/ diff --git a/setup.cfg b/setup.cfg index 522a045..ab1ad96 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [tool:pytest] -addopts = -s --strict-markers -vv --cache-clear --maxfail=1 --cov=aioauth --cov-report=term --cov-report=html --cov-branch --no-cov-on-fail +addopts = -s --strict-markers -vv --cache-clear --maxfail=1 --cov=aioauth --cov-report=term --cov-report=html --cov-branch --no-cov-on-fail --junitxml=junit.xml -o junit_family=legacy [coverage:run] branch = True