39 lines
815 B
YAML
39 lines
815 B
YAML
name: Full CI
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Setup
|
|
uses: ./.gitea/actions/install
|
|
with:
|
|
python_version: "3.12"
|
|
|
|
- name: Format
|
|
run: |
|
|
source .venv/bin/activate
|
|
ruff format --check
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
needs: "lint"
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.11", "3.12", "3.13"]
|
|
|
|
steps:
|
|
- name: Setup
|
|
uses: ./.gitea/actions/install
|
|
with:
|
|
python_version: ${{ matrix.python_version }}
|
|
|
|
- name: Run Pytest with Coverage
|
|
run: |
|
|
source .venv/bin/activate
|
|
pytest --random-order --cov=./ --cov-config=./pyproject.toml --cov-branch --cov-report=xml --no-cov-on-fail ./tests/
|