ci: simplify workflow and add pytest config
This commit is contained in:
@@ -20,10 +20,10 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -e ".[dev]"
|
||||
pip install -e "[dev]"
|
||||
|
||||
- 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:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
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
|
||||
run: ruff check src/cli_explain_fix/ tests/
|
||||
|
||||
typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
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
|
||||
run: mypy src/cli_explain_fix/ tests/
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user