chore(config): migrate renovate config #1011
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2022 Benedikt Fein | |
# | |
# SPDX-License-Identifier: EUPL-1.2 | |
name: CI | |
on: [push, pull_request] | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.11", "3.12", "3.13"] | |
os: ["ubuntu-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install the project | |
run: uv sync --all-extras --dev | |
- name: Check imports with isort | |
run: uv run isort --check-only . --profile black | |
- name: Check formatting | |
run: uv run ruff format --diff --check . | |
- name: Check typing with mypy | |
run: uv run mypy src tests | |
- name: Linting with ruff | |
run: uv run ruff check . | |
- name: Check docstrings with darglint | |
run: uv run darglint2 -s sphinx -v 2 src/**/*.py | |
- name: Run tests | |
run: uv run pytest --cov=src --cov=tests --cov-branch --cov-report=term-missing tests/ | |
- name: Check reuse | |
run: uv run reuse lint |