Run test on Linux and Windows

This commit is contained in:
henryruhs 2023-06-05 15:54:10 +02:00
parent a58a376b87
commit 8b774af1ac

View File

@ -3,39 +3,37 @@ name: ci
on: [ push, pull_request ] on: [ push, pull_request ]
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up Python 3.9 - name: Set up Python 3.9
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.9 python-version: 3.9
- run: pip install flake8 - run: pip install flake8
- run: flake8 run.py core - run: flake8 run.py core
test: test:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
ubuntu: ubuntu:
os: ubuntu-latest os: ubuntu-latest
run-headless: python run.py -f=.github/examples/face.jpg -t=.github/examples/target.mp4 -o=.github/examples/output.mp4 run: python run.py -f=.github/examples/face.jpg -t=.github/examples/target.mp4 -o=.github/examples/output.mp4
run-validate: ffmpeg -i .github/examples/snapshot.mp4 -i .github/examples/output.mp4 -filter_complex psnr -f null - windows:
windows: os: windows-latest
os: windows-latest run: python run.py -f .github\examples\face.jpg -t .github\examples\target.mp4 -o .github\examples\output.mp4
run-headless: python run.py -f .github\examples\face.jpg -t .github\examples\target.mp4 -o .github\examples\output.mp4 steps:
run-validate: ffmpeg -i .github\examples\snapshot.mp4 -i .github/examples\output.mp4 -filter_complex psnr -f null - - name: Checkout
steps: uses: actions/checkout@v2
- name: Checkout - name: Set up ffmpeg
uses: actions/checkout@v2 uses: FedericoCarboni/setup-ffmpeg@v2
- name: Set up ffmpeg - name: Set up Python 3.9
uses: FedericoCarboni/setup-ffmpeg@v2 uses: actions/setup-python@v2
- name: Set up Python 3.9 with:
uses: actions/setup-python@v2 python-version: 3.9
with: - run: pip install -r requirements.txt gdown
python-version: 3.9 - run: gdown 13QpWFWJ37EB-nHrEOY64CEtQWY-tz7DZ
- run: pip install -r requirements.txt gdown - run: ${{ matrix.run }}
- run: gdown 13QpWFWJ37EB-nHrEOY64CEtQWY-tz7DZ
- run: ${{ matrix.run-headless }}
- run: ${{ matrix.run-validate }}