mirror of
https://github.com/Khendi1/PVS.git
synced 2026-06-16 12:33:19 +02:00
56 lines
1.1 KiB
YAML
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
|