From 5109cbd4abdb2c2bec454dbc0fc0d167b8e8ff43 Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Tue, 2 Dec 2025 12:37:37 +0100 Subject: [PATCH] add mypy workflow --- .github/workflows/mypy.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/mypy.yaml diff --git a/.github/workflows/mypy.yaml b/.github/workflows/mypy.yaml new file mode 100644 index 0000000..db8e66f --- /dev/null +++ b/.github/workflows/mypy.yaml @@ -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