ci: separate test workflow for parallel execution

Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
Chaos Rogers 2025-07-10 19:31:09 +01:00
parent 748d2b561b
commit 2e5b601340
2 changed files with 40 additions and 7 deletions

View file

@ -61,13 +61,6 @@ jobs:
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS: 1
# Add library path for the cross-compiler's linker
RUSTFLAGS: -L/usr/lib/aarch64-linux-gnu
- name: Run tests on native platform
run: cargo test --release
- name: Run PTP integration tests
run: cargo test ptp_integration_test --release
- name: Run all library tests
run: cargo test --lib --release
- name: Upload artifact
uses: actions/upload-artifact@v4
with:

40
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,40 @@
name: Test Suite
on:
push:
branches:
- main
- ptp
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Run Tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install system dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libudev-dev pkg-config cmake
- name: Install Rust dependencies
run: cargo fetch
- name: Run all tests
run: cargo test --release
- name: Run PTP integration tests
run: cargo test ptp_integration_test --release
- name: Run library tests
run: cargo test --lib --release