mirror of
https://github.com/facefusion/facefusion.git
synced 2026-04-23 01:46:09 +02:00
3daf049684
* Introduce API scelleton * Raw impl for session * Simple state endpoint * Apply _body naming * Finalize session testing and comment out tons of useless code * Clean and refactor part1 * Clean and refactor part2 * Clean and refactor part2 * Clean and refactor part2 * Clean and refactor part2 * Refactor middleware * Refactor middleware * Clean and refactor part3 * TDD and 2 beers * TDD and 2 beers * Complete state endpoints * You can only set what is already present * Use only JSON as response * Use default logger * Improve auth extraction * Extend api command with more args * Adjust API messages
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
name: ci
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up Python 3.12
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
- run: pip install flake8
|
|
- run: pip install flake8-import-order
|
|
- run: pip install mypy
|
|
- run: flake8 facefusion.py install.py
|
|
- run: flake8 facefusion tests
|
|
- run: mypy facefusion.py install.py
|
|
- run: mypy facefusion tests
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [ macos-latest, ubuntu-latest, windows-latest ]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up FFmpeg
|
|
uses: AnimMouse/setup-ffmpeg@v1
|
|
- name: Set up Python 3.12
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
- run: python install.py --onnxruntime default --skip-conda
|
|
- run: pip install pytest
|
|
- run: pip install httpx
|
|
- run: pytest
|
|
report:
|
|
needs: test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up FFmpeg
|
|
uses: FedericoCarboni/setup-ffmpeg@v3
|
|
- name: Set up Python 3.12
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
- run: python install.py --onnxruntime default --skip-conda
|
|
- run: pip install coveralls
|
|
- run: pip install pytest
|
|
- run: pip install pytest-cov
|
|
- run: pip install httpx
|
|
- run: pytest tests --cov facefusion
|
|
- run: coveralls --service github
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|