From 431d174614624bb4d703f9e93fe3cbcd5534008e Mon Sep 17 00:00:00 2001 From: Rafid Aslam Date: Wed, 8 Jan 2025 21:38:14 +0700 Subject: [PATCH] chore: Upload coverage artifact to codecov --- .github/workflows/coverage.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index dbb1f361..b6da3348 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -13,12 +13,11 @@ jobs: run: | python -m pip install --upgrade pip pip install pytest pytest-cov - pip install -e . + pip install . - name: Run tests with coverage run: | - pytest --cov=tirith tests/ - - name: Upload coverage report - uses: actions/upload-artifact@v3 + pytest --cov-branch --cov-report=xml --cov=tirith tests/ + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 with: - name: coverage-report - path: coverage.xml \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }}