From 14fc5629468e05b906970a8a5dd629c4d6724d72 Mon Sep 17 00:00:00 2001 From: Henry Ruhs Date: Wed, 2 Aug 2023 16:58:12 +0200 Subject: [PATCH] Multi OS in CI (#808) * Run CI on multi OS * Run CI on multi OS * Run CI on multi OS * Run CI on multi OS * Run CI on multi OS --- .github/workflows/ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 420a32db0..04c04a0e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,10 @@ jobs: - run: flake8 run.py roop - run: mypy run.py roop test: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} steps: - name: Checkout uses: actions/checkout@v2 @@ -28,6 +31,11 @@ jobs: with: python-version: 3.9 - run: pip install -r requirements-ci.txt - - run: python run.py -s=.github/examples/source.jpg -t=.github/examples/target.mp4 -o=.github/examples/output.mp4 + - run: python run.py -s .github/examples/source.jpg -t .github/examples/target.mp4 -o .github/examples/output.mp4 + if: matrix.os != 'windows-latest' + - run: python run.py -s .github\examples\source.jpg -t .github\examples\target.mp4 -o .github\examples\output.mp4 + if: matrix.os == 'windows-latest' - run: ffmpeg -i .github/examples/snapshot.mp4 -i .github/examples/output.mp4 -filter_complex psnr -f null - - + if: matrix.os != 'windows-latest' + - run: ffmpeg -i .github\examples\snapshot.mp4 -i .github\examples\output.mp4 -filter_complex psnr -f null - + if: matrix.os == 'windows-latest'