PR Title Check / check-title (pull_request) Successful in 6s
Test Python Package / unit-tests (pull_request) Successful in 13s
Code Quality Pipeline / code-quality (pull_request) Successful in 23s
Test Python Package / integration-tests (pull_request) Successful in 26s
Test Python Package / coverage-report (pull_request) Successful in 16s
Co-authored-by: Cursor <cursoragent@cursor.com>
37 lines
840 B
YAML
37 lines
840 B
YAML
name: Code Quality Pipeline
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
code-quality:
|
|
runs-on: python-repositories-ci
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Sync dependencies
|
|
env:
|
|
UV_LINK_MODE: copy
|
|
UV_INDEX_GITEA_USERNAME: ci-bot
|
|
UV_INDEX_GITEA_PASSWORD: ${{ secrets.CI_RUNNER_TOKEN }}
|
|
run: uv sync --all-extras --frozen
|
|
|
|
- name: Type check with mypy
|
|
run: uv run mypy .
|
|
|
|
- name: Ruff lint
|
|
run: uv run ruff check .
|
|
|
|
- name: Ruff format
|
|
run: uv run ruff format --check .
|
|
|
|
- name: Pyupgrade check
|
|
run: uv run pyupgrade --py312-plus $(git ls-files '*.py') && git diff --exit-code
|
|
|
|
- name: Prettier format
|
|
run: uv run pre-commit run prettier --all-files
|