Skip to content

chore: rearrange github actions a bit #3

chore: rearrange github actions a bit

chore: rearrange github actions a bit #3

Workflow file for this run

name: coverage
on:
push:
branches: [main, "rust-v*"]
pull_request:
branches: [main, "rust-v*"]
env:
DEFAULT_FEATURES: "azure,datafusion,s3,gcs,glue,hdfs "
jobs:
coverage:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install rust
uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: '1.80'
override: true
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- uses: Swatinem/rust-cache@v2
- name: Generate code coverage
run: cargo llvm-cov --features ${DEFAULT_FEATURES} --workspace --codecov --output-path codecov.json -- --skip read_table_version_hdfs
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: codecov.json
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}