This commit is contained in:
26
.gitea/workflows/tests.yml
Normal file
26
.gitea/workflows/tests.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
Reference in New Issue
Block a user