Introduce CI matrix

This commit is contained in:
henryruhs 2023-06-03 11:43:11 +02:00
parent 808662c1cd
commit 4ff9be1268

View File

@ -19,9 +19,9 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
- run-name: CPU - name: CPU
run: ./run.py -f=.github/examples/face.jpg -t=.github/examples/target.mp4 -o=.github/examples/output.mp4 run: ./run.py -f=.github/examples/face.jpg -t=.github/examples/target.mp4 -o=.github/examples/output.mp4
- run-name: GPU - name: GPU
run: ./run.py -f=.github/examples/face.jpg -t=.github/examples/target.mp4 -o=.github/examples/output.mp4 --gpu-vendor=nvidia run: ./run.py -f=.github/examples/face.jpg -t=.github/examples/target.mp4 -o=.github/examples/output.mp4 --gpu-vendor=nvidia
steps: steps:
- name: Checkout - name: Checkout
@ -32,7 +32,7 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.9 python-version: 3.9
- run: pip install -r requirements.txt tensorrt gdown - run: pip install -r requirements.txt gdown
- run: gdown 13QpWFWJ37EB-nHrEOY64CEtQWY-tz7DZ - run: gdown 13QpWFWJ37EB-nHrEOY64CEtQWY-tz7DZ
- run: ${{ matrix.run }} - run: ${{ matrix.run }}
- 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 -