update codecov CI

This commit is contained in:
blueloveTH 2024-02-05 14:53:30 +08:00
parent 8f11ce0466
commit 3048e0dde7

View File

@ -58,10 +58,11 @@ jobs:
- name: Unit Test with Coverage - name: Unit Test with Coverage
run: bash run_tests.sh run: bash run_tests.sh
- name: Upload coverage reports to Codecov - name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v4
with: with:
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}
directory: .coverage directory: .coverage
fail_ci_if_error: true
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
- name: Compile - name: Compile
run: | run: |