Skip to content

Commit

Permalink
Add API Coverage CI Job
Browse files Browse the repository at this point in the history
  • Loading branch information
davisp committed Apr 15, 2024
1 parent fbee417 commit 6af574d
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 16 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/nigthtly-ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Nightlies
on:
schedule:
# runs every day at 1:45 UTC
- cron: "45 01 * * *"
workflow_dispatch:

name: Nightlies

jobs:
update_build_and_test:
runs-on: ubuntu-latest
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/pr-api-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: PR API Coverage
on:
workflow_call:

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout tiledb-rs
uses: actions/checkout@v3
- name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable
- name: Setup Rustc Cache
uses: Swatinem/rust-cache@v2
- name: Install TileDB
uses: ./.github/actions/install-tiledb
- name: Build API Coverage Tool
run: cd tools/api-coverage && cargo build
- name: Calculate Coverage
run: ./target/debug/api-coverage
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
name: PR Build and Test
on:
workflow_call:
workflow_dispatch:

push:
branches:
- main
- refs/tags/*
pull_request:
branches:
- '*' # must quote since "*" is a YAML reserved character; we want a string

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

name: PR Checks
env:
# Print stack traces on test failure
RUST_BACKTRACE: full

jobs:
build_and_test:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Pull Request CI"
on:
push:
branches:
- dev
- release-*
- refs/tags/*

pull_request:
branches:
- '*' # Quotes required because * is reserved by YAML

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build-and-test:
uses: ./.github/workflows/pr-build-and-test.yml

check-api-coverage:
uses: ./.github/workflows/pr-api-coverage.yml

0 comments on commit 6af574d

Please sign in to comment.