Skip to content
Merged
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
10 changes: 6 additions & 4 deletions .github/workflows/rust-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ name: Rust tests

on:
push:
branches: [ "main" ]
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
core-tests:
workspace-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -18,9 +16,13 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Rust cache to speed up cold starts
uses: Swatinem/rust-cache@v2

- name: Run tests
run: cargo test -p ooniauth-core --all-targets --locked --verbose
run: cargo test --workspace --all-targets --locked --verbose

# Checks that python bindings can be compiled and used
python-bindings:
runs-on: ubuntu-latest
steps:
Expand Down