diff --git a/.github/codecov.yml b/.github/codecov.yml deleted file mode 100644 index f6167caf..00000000 --- a/.github/codecov.yml +++ /dev/null @@ -1,20 +0,0 @@ -# ref: https://docs.codecov.com/docs/codecovyml-reference -coverage: - range: 50..100 - round: down - precision: 1 - status: - # ref: https://docs.codecov.com/docs/commit-status - project: - default: - # Avoid false negatives - threshold: 10% - -# Test files aren't important for coverage -ignore: - - "tests" - -# Make comments less noisy -comment: - layout: "files" - require_changes: true \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22a2dc76..a09dd08a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -165,10 +165,11 @@ jobs: run: cargo clippy --locked --tests --all-features coverage: - # use llvm-cov to build and collect coverage and outputs in a format that is compatible with - # codecov.io runs-on: ubuntu-latest name: ubuntu / stable / coverage + permissions: + contents: read + code-quality: write env: TRYBUILD: overwrite NETCALYX_CUSTOM_XML_PATHS: "" @@ -191,13 +192,14 @@ jobs: if: hashFiles('Cargo.lock') == '' run: cargo generate-lockfile - name: cargo llvm-cov - run: cargo llvm-cov --locked --all-features --lcov --output-path lcov.info - - name: Upload to codecov.io - uses: codecov/codecov-action@v7 + run: cargo llvm-cov --locked --all-features --cobertura --output-path coverage.xml + - name: Upload coverage report + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository + uses: actions/upload-code-coverage@v1 with: - fail_ci_if_error: true - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + file: coverage.xml + language: Rust + label: code-coverage/llvm-cov # Define version and release information for use across jobs #