Files
wled-screen-controller-mixed/.gitea/workflows/test.yml
alexei.dolgolyov 34f142ee61
Some checks failed
Lint & Test / test (push) Failing after 21s
fix: add opencv-python-headless to dev deps and libportaudio2 to CI
The test import chain (conftest → storage → filters → cv2) requires
opencv-python-headless. Also install libportaudio2 for sounddevice.
2026-03-22 01:32:52 +03:00

39 lines
824 B
YAML

name: Lint & Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libportaudio2
- name: Install dependencies
working-directory: server
run: |
pip install --upgrade pip
pip install -e ".[dev]"
- name: Lint with ruff
working-directory: server
run: ruff check src/ tests/
- name: Run tests
working-directory: server
run: pytest --tb=short -q