Some checks failed
Lint & Test / test (push) Failing after 21s
The test import chain (conftest → storage → filters → cv2) requires opencv-python-headless. Also install libportaudio2 for sounddevice.
39 lines
824 B
YAML
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
|