test/mypy #11

Merged
jkuhl merged 5 commits from test/mypy into develop 2025-12-02 12:45:07 +01:00
Showing only changes of commit 5109cbd4ab - Show all commits

add mypy workflow
Some checks failed
Mypy / mypy (push) Failing after 17s
Pytest / pytest (3.12) (push) Successful in 50s
Pytest / pytest (3.13) (push) Has been cancelled
Pytest / pytest (3.14) (push) Has been cancelled

Justus Kuhlmann 2025-12-02 12:37:37 +01:00
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

30
.github/workflows/mypy.yaml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Mypy
on:
push:
pull_request:
workflow_dispatch:
jobs:
mypy:
runs-on: ubuntu-latest
env:
UV_CACHE_DIR: /tmp/.uv-cache
steps:
- name: Install git-annex
run: |
sudo apt-get update
sudo apt-get install -y git-annex
- name: Check out the repository
uses: https://github.com/RouxAntoine/checkout@v4.1.8
with:
show-progress: true
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install corrlib
run: uv sync --locked --all-extras --dev --python "3.12""
- name: Run tests
run: uv run mypy corrlib