ci: combine checks with verbose output
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user