Files
viandante/.gitea/workflows/ci.yml
T
ubuntu de978187d0
ci / lint (ruff) (push) Successful in 1m22s
ci / pytest (py3.10) (push) Successful in 9m41s
ci / pytest (py3.11) (push) Successful in 9m38s
ci / pytest (py3.12) (push) Successful in 9m25s
ci / pytest (py3.13) (push) Successful in 9m42s
fix(ci): align runs-on labels with gitea/act_runner defaults — advertise ubuntu-22.04 instead of self-hosted
2026-07-08 08:19:55 +00:00

59 lines
1.3 KiB
YAML

name: ci
"on":
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
ruff:
name: lint (ruff)
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python 3.12 (for ruff)
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dev extras (pulls ruff from pyproject)
run: |
python -m pip install -U pip
python -m pip install -e ".[dev]"
- name: Run ruff
run: python -m ruff check src tests
pytest:
name: pytest (py${{ matrix.python-version }})
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dev extras
run: |
python -m pip install -U pip
python -m pip install -e ".[dev]"
- name: Run pytest
run: python -m pytest -q