Add tokio taskname registration for use in tokio-console #480
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
concurrency: | |
group: coverage-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
coverage: | |
name: Codecov.io | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
features: | |
- flags: "--all-features" | |
env: 'RUSTFLAGS="--cfg tokio_unstable"' | |
- flags: "" | |
- flags: "--no-default-features" | |
env: | |
RUST_TEST_THREADS: "1" | |
steps: | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: llvm-tools-preview | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Compute Coverage | |
run: | |
${{ matrix.features.env }} cargo llvm-cov ${{ matrix.features.flags }} --workspace --ignore-filename-regex tests.rs --codecov --output-path codecov.json | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
files: codecov.json | |
fail_ci_if_error: true | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: code-coverage-report | |
path: codecov.json |