ci.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: ci
  2. on: [ push, pull_request ]
  3. jobs:
  4. lint:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: Checkout
  8. uses: actions/checkout@v4
  9. - name: Set up Python 3.10
  10. uses: actions/setup-python@v5
  11. with:
  12. python-version: '3.10'
  13. - run: pip install flake8
  14. - run: pip install flake8-import-order
  15. - run: pip install mypy
  16. - run: flake8 facefusion.py install.py
  17. - run: flake8 facefusion tests
  18. - run: mypy facefusion.py install.py
  19. - run: mypy facefusion tests
  20. test:
  21. strategy:
  22. matrix:
  23. os: [ macos-13, ubuntu-latest, windows-latest ]
  24. runs-on: ${{ matrix.os }}
  25. steps:
  26. - name: Checkout
  27. uses: actions/checkout@v4
  28. - name: Set up FFmpeg
  29. uses: FedericoCarboni/setup-ffmpeg@v3
  30. - name: Set up Python 3.10
  31. uses: actions/setup-python@v5
  32. with:
  33. python-version: '3.10'
  34. - run: python install.py --onnxruntime default --skip-conda
  35. - run: pip install pytest
  36. - run: pytest
  37. report:
  38. needs: test
  39. runs-on: ubuntu-latest
  40. steps:
  41. - name: Checkout
  42. uses: actions/checkout@v4
  43. - name: Set up FFmpeg
  44. uses: FedericoCarboni/setup-ffmpeg@v3
  45. - name: Set up Python 3.10
  46. uses: actions/setup-python@v5
  47. with:
  48. python-version: '3.10'
  49. - run: python install.py --onnxruntime default --skip-conda
  50. - run: pip install coveralls
  51. - run: pip install pytest
  52. - run: pip install pytest-cov
  53. - run: pytest tests --cov facefusion
  54. - run: coveralls --service github
  55. env:
  56. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}