Files
AareCommon/.gitea/workflows/ci.yml
T
perl_d a753a13535
CI / test (3.11) (push) Canceled after 0s
CI / test (3.12) (push) Canceled after 0s
CI / test (3.13) (push) Canceled after 0s
CI / lint (push) Canceled after 1m12s
CI / test (3.11) (pull_request) Canceled after 0s
CI / test (3.12) (pull_request) Canceled after 0s
CI / test (3.13) (pull_request) Canceled after 0s
CI / lint (pull_request) Canceled after 1m11s
ci: add more linting steps
2026-08-06 17:33:22 +02:00

62 lines
1.4 KiB
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
- name: Lint
run: |
source .venv/bin/activate
ruff check
- name: Checkout pyright diff plugin
uses: https://github.com/actions/checkout@v5
with:
repository: mx/diff_quality_basedpyright
path: diff_quality_basedpyright
- name: Typecheck Diff
run: |
source .venv/bin/activate
uv pip install -e diff_quality_basedpyright
diff-quality --violations=basedpyright --fail-under=100
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/