Files
AareCommon/.gitea/workflows/ci.yml
T
perl_d b1e456bcb0
CI / lint (pull_request) Successful in 20s
CI / lint (push) Successful in 18s
CI / test (3.11) (pull_request) Successful in 19s
CI / test (3.12) (pull_request) Successful in 23s
CI / test (3.11) (push) Successful in 20s
CI / test (3.13) (pull_request) Successful in 29s
CI / test (3.12) (push) Successful in 23s
CI / test (3.13) (push) Successful in 24s
feat: add release workflow
2026-07-02 16:44:39 +02:00

45 lines
936 B
YAML

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- 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: Checkout code
uses: actions/checkout@v5
- 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/