-
Notifications
You must be signed in to change notification settings - Fork 16
50 lines (41 loc) · 1.99 KB
/
Copy pathtest.yml
File metadata and controls
50 lines (41 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Pytest
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
build:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install ffmpeg and libfuse-for-ufdr
run: sudo apt-get update && sudo apt-get install -y ffmpeg && sudo apt install fuse
- name: docker comose for pgvector
run: ./startup/pgvector_start.sh
- name: pull onnx model for deepfake
run: |
pip install gdown
mkdir =p "src/deepfake-detection/deepfake_detection/onnx_models"
gdown "1tFHTXCGy0hWRFH2H9MP9MpaBJvyHbW0u" -O src/deepfake-detection/deepfake_detection/onnx_models/bnext_M_dffd_model.onnx --continue
ls -l src/deepfake-detection/deepfake_detection/onnx_models
gdown "1Yuyt9pZj7dbaYeX0toEgFJfVgjhOS1SG" --continue
unzip ./models--Systran--faster-whisper-base.zip
mkdir -p ~/.cache/huggingface/hub
mv models--Systran--faster-whisper-base ~/.cache/huggingface/hub
- name: pull onnx model for facematch
run: |
pip install gdown --force-reinstall
mkdir -p "src/face-detection-recognition/face_detection_recognition/models"
gdown "1oDt1i80rUew0UhtY3UiW9EIyd2WfJTZf" -O ./src/face-detection-recognition/face_detection_recognition/models/retinaface-resnet50.onnx --continue
gdown "1CVCmumM_6C7giGAXJUwHWT--DPFC9bpI" -O ./src/face-detection-recognition/face_detection_recognition/models/facenet512_model.onnx --continue
- name: Install Poetry and dependencies
run: |
pip install poetry
poetry install --with api --with dev
- name: Run tests
env:
DATABASE_URL: postgresql+psycopg2://rbuser:rescue@127.0.0.1:5433/rescuebox
run: HF_HUB_OFFLINE=1 poetry run pytest --ignore=frontend/tests/integration/