Skip to content

Commit aaf357e

Browse files
Update ci.yml
1 parent aed03df commit aaf357e

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# .github/workflows/ci.yml
21
name: CI / Test & Docker Build
32

43
on:
@@ -11,6 +10,25 @@ jobs:
1110
test-and-build:
1211
runs-on: ubuntu-latest
1312

13+
env:
14+
# Force local ffmpeg usage
15+
MODE: local
16+
FFMPEG_PATH: /usr/bin/ffmpeg
17+
FFPROBE_PATH: /usr/bin/ffprobe
18+
VMAF_PATH: /usr/bin/true # no-op if VMAF not installed
19+
# JWT settings for tests
20+
SECRET_KEY: testsecret
21+
ALGORITHM: HS256
22+
ACCESS_TOKEN_EXPIRE_MINUTES: 60
23+
# AWS disabled in CI
24+
AWS_ACCESS_KEY_ID: ''
25+
AWS_SECRET_ACCESS_KEY: ''
26+
AWS_REGION: us-east-1
27+
# API server defaults (not used by tests)
28+
HOST: 0.0.0.0
29+
PORT: 8000
30+
WORKERS: 1
31+
1432
steps:
1533
- name: Checkout repository
1634
uses: actions/checkout@v4
@@ -20,7 +38,12 @@ jobs:
2038
with:
2139
python-version: '3.10'
2240

23-
- name: Install dependencies, pytest & httpx
41+
- name: Install system FFmpeg
42+
run: |
43+
sudo apt-get update
44+
sudo apt-get install -y ffmpeg
45+
46+
- name: Install Python dependencies, pytest & httpx
2447
run: |
2548
python -m pip install --upgrade pip
2649
pip install --no-cache-dir -r requirements.txt
@@ -44,3 +67,4 @@ jobs:
4467
load: true
4568
push: false
4669
tags: ffmpeg-api-service:latest
70+

0 commit comments

Comments
 (0)