From 6e6d3f8fb7adc22d9c89ff06740ee9b7ac4b24f1 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 27 Jan 2026 23:09:16 +0700 Subject: [PATCH 1/5] fix: try codecov-action --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76608502..4d9e2638 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,9 +18,10 @@ jobs: run: pytest --cov app --junitxml=junit.xml -o junit_family=legacy - name: Upload test results to Codecov if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 + uses: codecov/codecov-action@main with: token: ${{ secrets.CODECOV_TOKEN }} + report-type: test_results - name: Upload coverage to Codecov (arg token) uses: codecov/codecov-action@main with: @@ -45,3 +46,7 @@ jobs: fail_ci_if_error: true use_oidc: true verbose: true + - name: Try local upload + uses: getsentry/codecov-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} From c7626a28514286cb3707942eb0e01bdeea0c3d55 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 27 Jan 2026 23:10:04 +0700 Subject: [PATCH 2/5] fix: use main --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d9e2638..c3192972 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,6 +47,6 @@ jobs: use_oidc: true verbose: true - name: Try local upload - uses: getsentry/codecov-action@v1 + uses: getsentry/codecov-action@main with: token: ${{ secrets.GITHUB_TOKEN }} From 080cab2fec2a5ea66f0ead1e6f5dc1492672b927 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 27 Jan 2026 23:11:25 +0700 Subject: [PATCH 3/5] fix: coverage json --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3192972..cafd5609 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,13 +15,15 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt - name: Run tests and collect coverage - run: pytest --cov app --junitxml=junit.xml -o junit_family=legacy + run: | + pytest --cov app --junitxml=junit.xml -o junit_family=legacy + coverage json - name: Upload test results to Codecov if: ${{ !cancelled() }} uses: codecov/codecov-action@main with: token: ${{ secrets.CODECOV_TOKEN }} - report-type: test_results + report_type: test_results - name: Upload coverage to Codecov (arg token) uses: codecov/codecov-action@main with: From b98c57d409cb34d2cbfca197d8897932e8a1a55a Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 27 Jan 2026 23:12:42 +0700 Subject: [PATCH 4/5] fix: use coverage xml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cafd5609..ef9cbb20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - name: Run tests and collect coverage run: | pytest --cov app --junitxml=junit.xml -o junit_family=legacy - coverage json + coverage xml - name: Upload test results to Codecov if: ${{ !cancelled() }} uses: codecov/codecov-action@main From 8ebf8abc9d07cceb42ead4b94edb494d52eefd2f Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 27 Jan 2026 23:16:43 +0700 Subject: [PATCH 5/5] fix: add statuses --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef9cbb20..8012337a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ jobs: runs-on: ubuntu-latest permissions: id-token: write + statuses: write steps: - name: Checkout uses: actions/checkout@v4