mirror of
https://github.com/facefusion/facefusion-labs.git
synced 2026-04-19 15:56:37 +02:00
32 lines
735 B
YAML
32 lines
735 B
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 crossface hyperswap
|
|
- run: mypy crossface hyperswap
|
|
test:
|
|
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 torch torchvision
|
|
- run: pip install pytest
|
|
- run: PYTHONPATH=/home/runner/work/facefusion-labs/facefusion-labs pytest
|