diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5a1bca7..1fa1c951 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,10 +40,21 @@ jobs: UV_PYTHON: ${{ matrix.python-version }} - name: Run tests - run: make test + run: make test-coverage env: UV_PYTHON: ${{ matrix.python-version }} + # Consumed by the weekly coverage report, which reads the artifact from + # the newest successful run on main. Name is per-matrix-version because + # upload-artifact@v4 requires unique names within a run. + - name: Upload coverage report + uses: actions/upload-artifact@v4 + if: always() + with: + name: coverage-${{ matrix.python-version }} + path: coverage.xml + if-no-files-found: error + e2e: if: github.event_name != 'schedule' && github.repository == 'runpod/runpod-python' runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 95145287..2f72cb1a 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ test: uv run pytest test-coverage: - uv run pytest --cov=runpod --cov-report=term-missing + uv run pytest --cov=runpod --cov-report=term-missing --cov-report=xml # --- Build --- build: