From afac58d83388e6f42955f04d21de59f5e69ba356 Mon Sep 17 00:00:00 2001 From: Alpamys Date: Mon, 1 Jun 2026 11:29:30 +0500 Subject: [PATCH] ci: keep type-check job green (non-blocking mypy baseline) mypy findings are surfaced as a warning annotation + step log instead of failing the job. The workflow was already green (job-level continue-on-error), but the type-check job itself rendered as a red X in the commit checks. Move the tolerance to the step and emit a ::warning:: so the check stays green while type annotations are adopted incrementally. --- .github/workflows/ci.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f120e9b..9dbd498 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,17 +19,21 @@ jobs: type-check: runs-on: ubuntu-latest - # Non-blocking: surfaces type issues without gating the build while the - # codebase adopts annotations incrementally. Reads [tool.mypy] from - # pyproject.toml (files = ["src/soup_cli"], ignore_missing_imports = true). - continue-on-error: true + # Non-blocking type-check baseline. The codebase adopts annotations + # incrementally, so mypy findings are surfaced as a warning annotation (and + # in the step log) but do NOT fail the job — the check stays green until + # types are tightened enough to promote it to a required gate. Reads + # [tool.mypy] from pyproject.toml (files = ["src/soup_cli"], + # ignore_missing_imports = true). steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.11" - run: pip install mypy - - run: mypy + - name: mypy (non-blocking) + run: | + mypy || echo "::warning title=mypy::Type issues reported (non-blocking baseline — see the log above)" test: strategy: