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