ci: simplify workflow and add pytest config
Some checks failed
CI / test (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-01-30 23:54:44 +00:00
parent fe9d0a47cc
commit 85ef1f9fa2

View File

@@ -20,10 +20,10 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -e ".[dev]" pip install -e "[dev]"
- name: Run pytest - name: Run pytest
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: pytest -v --tb=short
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -39,7 +39,7 @@ jobs:
run: pip install ruff run: pip install ruff
- name: Run linting - 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 run: ruff check src/cli_explain_fix/ tests/
typecheck: typecheck:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -55,7 +55,7 @@ jobs:
run: pip install mypy run: pip install mypy
- name: Run type checking - 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 run: mypy src/cli_explain_fix/ tests/
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest