From 2be5d41304f52b3cbed4a8b02ae9b5b914c96f2b Mon Sep 17 00:00:00 2001 From: Samuel Huang Date: Tue, 1 Oct 2024 03:36:41 -0700 Subject: [PATCH] Upload coverage data to Codecov --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01fa7f3..9709c36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,3 +32,11 @@ jobs: run: | coverage run runner.py coverage report + - name: Generate coverage.xml artifact + run: | + coverage xml -o ./coverage.xml + - name: Upload coverage data to Codecov + uses: codecov/codecov-action@v4 + with: + files: ./coverage.xml + token: ${{ secrets.CODECOV_TOKEN }}