diff --git a/.github/workflows/pr-checks.yaml b/.github/workflows/pr-checks.yaml index 8a7c92b..f9b07f3 100644 --- a/.github/workflows/pr-checks.yaml +++ b/.github/workflows/pr-checks.yaml @@ -52,17 +52,39 @@ jobs: eval "$(conda shell.bash hook)" conda activate cellxgene-gateway coverage report --fail-under 41 + coverage report > coverage.txt + coverage html -i coverage xml -i - - name: "Upload coverage to Codecov" - if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }} - uses: codecov/codecov-action@v1 + - name: Upload coverage HTML report + uses: actions/upload-artifact@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage.xml - flags: unittests - env_vars: OS,PYTHON - name: codecov-umbrella - fail_ci_if_error: true - path_to_write_report: ./codecov_report.txt - verbose: true + name: coverage-html + path: htmlcov/ + retention-days: 30 + + - name: Upload coverage xml + uses: actions/upload-artifact@v4 + with: + name: coverage-xml + path: coverage.xml + retention-days: 30 + + - name: Upload coverage summary + uses: actions/upload-artifact@v4 + with: + name: coverage-summary + path: coverage.txt + retention-days: 30 + # - name: "Upload coverage to Codecov" + # if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }} + # uses: codecov/codecov-action@v1 + # with: + # token: ${{ secrets.CODECOV_TOKEN }} + # files: ./coverage.xml + # flags: unittests + # env_vars: OS,PYTHON + # name: codecov-umbrella + # fail_ci_if_error: true + # path_to_write_report: ./codecov_report.txt + # verbose: true