Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Refactor documentation and scripts for FaceForge #62

Refactor documentation and scripts for FaceForge

Refactor documentation and scripts for FaceForge #62

Workflow file for this run

name: ci
on:
push:
pull_request:
jobs:
core:
name: core (ruff + pytest)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Create venv
shell: pwsh
run: |
python -m venv .venv
- name: Install dependencies
shell: pwsh
run: |
$py = if ($IsWindows) { '.\.venv\Scripts\python.exe' } else { './.venv/bin/python' }
& $py -m pip install --upgrade pip
& $py -m pip install -e ./core[dev]
- name: Ruff format (check)
shell: pwsh
run: |
$py = if ($IsWindows) { '.\.venv\Scripts\python.exe' } else { './.venv/bin/python' }
& $py -m ruff format --check ./core/src ./core/tests
- name: Ruff lint
shell: pwsh
run: |
$py = if ($IsWindows) { '.\.venv\Scripts\python.exe' } else { './.venv/bin/python' }
& $py -m ruff check ./core/src ./core/tests
- name: Pytest
shell: pwsh
run: |
$py = if ($IsWindows) { '.\.venv\Scripts\python.exe' } else { './.venv/bin/python' }
& $py -m pytest ./core/tests