Introduce CI matrix
This commit is contained in:
parent
cd1a399d1c
commit
0245f38f95
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -16,6 +16,12 @@ jobs:
|
|||||||
- run: flake8 run.py core
|
- run: flake8 run.py core
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- name: CPU
|
||||||
|
args: -f=.github/examples/face.jpg -t=.github/examples/target.mp4 -o=.github/examples/output.mp4 --gpu-vendor=nvidia
|
||||||
|
- name: GPU
|
||||||
|
args: -f=.github/examples/face.jpg -t=.github/examples/target.mp4 -o=.github/examples/output.mp4
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -28,6 +34,6 @@ jobs:
|
|||||||
- run: pip install -r requirements.txt
|
- run: pip install -r requirements.txt
|
||||||
- run: pip install gdown
|
- run: pip install gdown
|
||||||
- run: gdown 13QpWFWJ37EB-nHrEOY64CEtQWY-tz7DZ
|
- run: gdown 13QpWFWJ37EB-nHrEOY64CEtQWY-tz7DZ
|
||||||
- run: ./run.py -f=.github/examples/face.jpg -t=.github/examples/target.mp4 -o=.github/examples/output.mp4
|
- run: ./run.py {{ matrix.args }}
|
||||||
- run: ffmpeg -i .github/examples/snapshot.mp4 -i .github/examples/output.mp4 -filter_complex "psnr" -f null -
|
- run: ffmpeg -i .github/examples/snapshot.mp4 -i .github/examples/output.mp4 -filter_complex "psnr" -f null -
|
||||||
|
|
||||||
|
@ -31,10 +31,8 @@ def detect_fps(input_path):
|
|||||||
|
|
||||||
|
|
||||||
def run_ffmpeg(args):
|
def run_ffmpeg(args):
|
||||||
|
|
||||||
log_level = f'-loglevel {roop.globals.log_level}'
|
log_level = f'-loglevel {roop.globals.log_level}'
|
||||||
|
run_command(f'ffmpeg {log_level} {args}')
|
||||||
os.system(f'ffmpeg {log_level} {args}')
|
|
||||||
|
|
||||||
|
|
||||||
def set_fps(input_path, output_path, fps):
|
def set_fps(input_path, output_path, fps):
|
||||||
|
Loading…
Reference in New Issue
Block a user