mirror of
https://github.com/langchain-ai/delta-rs.git
synced 2026-07-01 20:34:35 -04:00
db2d1e070e
Signed-off-by: Ion Koutsouris <15728914+ion-elgreco@users.noreply.github.com>
37 lines
1022 B
YAML
37 lines
1022 B
YAML
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.81'
|
|
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 --skip test_read_tables_lakefs
|
|
- 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 }}
|