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: |
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