27 lines
772 B
YAML
27 lines
772 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Systempakete installieren
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y pkg-config libx11-dev libxkbcommon-dev libwayland-dev libgl1-mesa-dev
|
|
- name: Rust installieren
|
|
uses: dtolnay/rust-toolchain@stable
|
|
- name: Rust testen
|
|
run: |
|
|
cargo test --locked --manifest-path scanner/Cargo.toml
|
|
cargo test --locked --manifest-path controller/Cargo.toml
|
|
cargo test --locked --manifest-path gui/Cargo.toml
|
|
- name: Python und Rauchtests
|
|
run: |
|
|
python3 -m unittest discover -s tests -p 'test_*.py'
|
|
bash tests/smoke.sh
|