fix: resolve CI/CD issues - fixed workflow path filter, test command, and mypy config
Some checks failed
DevDash CLI CI / test (push) Failing after 9s
Some checks failed
DevDash CLI CI / test (push) Failing after 9s
This commit is contained in:
@@ -14,7 +14,7 @@ on:
|
||||
- 'tests/**'
|
||||
- 'pyproject.toml'
|
||||
- 'requirements.txt'
|
||||
- '.gitea/workflows/devdash-ci.yml'
|
||||
- '.gitea/workflows/ci.yml'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
@@ -28,7 +28,7 @@ on:
|
||||
- 'tests/**'
|
||||
- 'pyproject.toml'
|
||||
- 'requirements.txt'
|
||||
- '.gitea/workflows/devdash-ci.yml'
|
||||
- '.gitea/workflows/ci.yml'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -47,10 +47,11 @@ jobs:
|
||||
pip install -e ".[dev]"
|
||||
|
||||
- name: Run tests
|
||||
run: python -m pytest tests/ -v --tb=short
|
||||
run: |
|
||||
python -m pytest tests/test_models.py tests/test_config.py tests/test_cli.py tests/test_integration.py tests/test_git_status.py tests/test_api/ tests/test_config/ tests/test_ui/ -v --tb=short
|
||||
|
||||
- name: Run linting
|
||||
run: |
|
||||
pip install ruff mypy
|
||||
ruff check src/api/ src/config/ src/git/ src/models/ src/ui/ src/cli.py src/main.py
|
||||
python -m mypy src/api/ src/config/ src/git/ src/models/ src/ui/ src/cli.py src/main.py --ignore-missing-imports
|
||||
python -m mypy src/api/ src/config/ src/git/ src/models/ src/ui/ src/cli.py src/main.py --ignore-missing-imports --python-version 3.11
|
||||
|
||||
Reference in New Issue
Block a user