Let's get started with pytest

This commit is contained in:
henryruhs
2023-08-21 16:19:01 +02:00
parent 871c3840e5
commit 8d1da5ad49
4 changed files with 34 additions and 13 deletions

View File

@@ -14,8 +14,8 @@ jobs:
python-version: '3.10'
- run: pip install flake8
- run: pip install mypy
- run: flake8 run.py facefusion
- run: mypy run.py facefusion
- run: flake8 run.py facefusion tests
- run: mypy run.py facefusion tests
test:
strategy:
matrix:
@@ -31,13 +31,4 @@ jobs:
with:
python-version: '3.10'
- run: pip install -r requirements-ci.txt
- run: curl --create-dirs --output .assets/examples/source.jpg https://github.com/facefusion/facefusion-assets/releases/download/examples/source.jpg
- run: curl --create-dirs --output .assets/examples/target-240p.mp4 https://github.com/facefusion/facefusion-assets/releases/download/examples/target-240p.mp4
- run: python run.py --source .assets/examples/source.jpg --target .assets/examples/target-240p.mp4 --output .assets/examples --trim-frame-end 30
if: matrix.os != 'windows-latest'
- run: python run.py --source .assets\examples\source.jpg --target .assets\examples\target-240p.mp4 --output .assets\examples --trim-frame-end 30
if: matrix.os == 'windows-latest'
- run: ffprobe -show_format -show_streams .assets/examples/source-target-240p.mp4
if: matrix.os != 'windows-latest'
- run: ffprobe -show_format -show_streams .assets\examples\source-target-240p.mp4
if: matrix.os == 'windows-latest'
- run: pytest