--no-cache #18
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: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.13.1"] | |
env: | |
UV_PYTHON: ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: "0.5.26" | |
enable-cache: true | |
cache-dependency-glob: | | |
pyproject.toml | |
- name: Install the project | |
run: | | |
uv sync --python ${{ matrix.python-version }} | |
- name: Build docs | |
run: | | |
. .venv/bin/activate | |
make -C docs/ html | |
continue-on-error: true | |
- 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 | |