From e7247b19ba3e85cc789d8ad2d995f2b84a6fa0a1 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Fri, 30 Jan 2026 23:48:21 +0000 Subject: [PATCH] ci: combine checks with verbose output --- .gitea/workflows/ci.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4e3c980..00fb0a5 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -21,22 +21,16 @@ jobs: run: | python -m pip install --upgrade pip pip install -e ".[dev]" - pip list | grep -E "cli-explain-fix|pytest|ruff|mypy" - - name: Run tests - run: pytest tests/test_parser.py tests/test_explainer.py tests/test_cli.py tests/conftest.py -v --cov=src/cli_explain_fix --cov-report=term-missing - - - name: Install linting tools - run: pip install ruff - - - name: Run linting - run: ruff check src/cli_explain_fix/ tests/test_parser.py tests/test_explainer.py tests/test_cli.py tests/conftest.py - - - name: Install type checker - run: pip install mypy - - - name: Run type checking - run: mypy src/cli_explain_fix/ tests/test_parser.py tests/test_explainer.py tests/test_cli.py tests/conftest.py + - name: Run all checks + run: | + echo "=== Running tests ===" + pytest tests/test_parser.py tests/test_explainer.py tests/test_cli.py tests/conftest.py -v --cov=src/cli_explain_fix --cov-report=term-missing || { echo "TESTS FAILED"; exit 1; } + echo "=== Running linting ===" + pip install ruff && ruff check src/cli_explain_fix/ tests/test_parser.py tests/test_explainer.py tests/test_cli.py tests/conftest.py || { echo "LINTING FAILED"; exit 1; } + echo "=== Running type checking ===" + pip install mypy && mypy src/cli_explain_fix/ tests/test_parser.py tests/test_explainer.py tests/test_cli.py tests/conftest.py || { echo "TYPE CHECKING FAILED"; exit 1; } + echo "=== All checks passed ===" build: needs: test