Skip to content

coverage #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build]
target-dir = ".build"

[profile.test-cover]
inherits = "test"
incremental = false
38 changes: 26 additions & 12 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on: # yamllint disable-line rule:truthy
- "master"
pull_request: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
Expand All @@ -17,44 +21,54 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repo and build scripts
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Run sccache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].7
- name: Build
run: cargo build
run: make build

lint:
runs-on: ubuntu-latest
steps:
- name: Check out repo and build scripts
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Run sccache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].7
- name: rustfmt nightly
run: |
rustup toolchain install nightly-x86_64-unknown-linux-gnu
rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install poetry
uses: snok/install-poetry@v1
python-version: "3.13"
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
uses: pre-commit/[email protected]
run: make lint

test:
runs-on: ubuntu-latest
steps:
- name: Check out repo and build scripts
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Run sccache
uses: mozilla-actions/[email protected]
uses: mozilla-actions/[email protected]
- name: Install grcov
run: cargo install grcov
- name: Add llvm-tools
run: rustup component add llvm-tools-preview
- name: Test
run: cargo test
run: make test
- name: Compute coverage
run: make cover
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/target
.build
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "build"]
path = build
url = [email protected]:acrlabs/build-scripts
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include build/base.mk
include build/rust.mk
1 change: 1 addition & 0 deletions build
Submodule build added at 19476e
Loading