Update documentation #26
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
name: Ruff, Mypy and Pytest | |
on: | |
push: | |
workflow_dispatch: | |
# Inputs the workflow accepts. | |
inputs: | |
name: | |
# Friendly description to be shown in the UI instead of 'name' | |
description: 'Person to greet' | |
# Default value if no value is explicitly provided | |
default: 'World' | |
# Input has to be provided for the workflow to run | |
required: true | |
# The data type of the input | |
type: string | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.13.1"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
- name: Install the project | |
run: | | |
uv sync --python ${{ matrix.python-version }} | |
- name: Ruff | |
run: | | |
uv run ruff check --output-format github --config pyproject.toml --fix | |
continue-on-error: true | |
- name: Mypy | |
run: | | |
uv run mypy --config-file pyproject.toml src tests | |
continue-on-error: true | |
- name: Test with pytest | |
run: | | |
uv run pytest tests | |
continue-on-error: true | |