Skip to content

Commit

Permalink
ci: add Rust integration tests
Browse files Browse the repository at this point in the history
On some GitHub runners (`ubuntu-latest` at least), we can now install
VTune. This allows us to run integration tests that show some usage of
the API working. The checks are very primitive at the moment but this
provides a foundation for future improvement.
  • Loading branch information
abrown committed Apr 9, 2024
1 parent 9fdc830 commit 39e6310
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,19 @@ jobs:
# The Windows CI transforms the `c-library` symlink into a real directory, modifying the Git
# state, so we ignore these changes with `--allow-dirty` here.
run: scripts/verify-publish.sh --allow-dirty

rust_test:
name: Run Rust integration tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: rust/integration-tests
shell: bash
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
- name: Install VTune
uses: abrown/install-vtune-action
- name: Run integration tests
run: cargo test

0 comments on commit 39e6310

Please sign in to comment.