ci: combine checks with verbose output
Some checks failed
CI / test (push) Failing after 12s
CI / build (push) Has been skipped

This commit is contained in:
2026-01-30 23:48:21 +00:00
parent 3f2e056cb0
commit e7247b19ba

View File

@@ -21,22 +21,16 @@ jobs:
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -e ".[dev]" pip install -e ".[dev]"
pip list | grep -E "cli-explain-fix|pytest|ruff|mypy"
- name: Run tests - name: Run all checks
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 run: |
echo "=== Running tests ==="
- name: Install linting tools 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; }
run: pip install ruff 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; }
- name: Run linting echo "=== Running type checking ==="
run: ruff check src/cli_explain_fix/ tests/test_parser.py tests/test_explainer.py tests/test_cli.py tests/conftest.py 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 ==="
- 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
build: build:
needs: test needs: test