Files
2026-04-14 23:47:31 -04:00

56 lines
1.1 KiB
YAML

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
LIBGL_ALWAYS_SOFTWARE: "1"
QT_QPA_PLATFORM: offscreen
PYTHONPATH: src:src/video_synth
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2
- name: Set up Python 3.11
uses: actions/setup-python@v5.3.0
with:
python-version: "3.11"
cache: pip
- name: Install system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install \
pytest \
numpy \
opencv-python-headless \
fastapi \
httpx \
uvicorn \
aiofiles \
noise \
pydantic \
PyYAML
- name: Run tests
run: pytest tests/ -v --tb=short