fix: update CI workflow to run devdash-cli specific tests
Some checks failed
DevDash CLI CI / test (push) Failing after 10s
Some checks failed
DevDash CLI CI / test (push) Failing after 10s
This commit is contained in:
@@ -4,13 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- 'src/api/**'
|
- 'src/**'
|
||||||
- 'src/config/**'
|
|
||||||
- 'src/git/**'
|
|
||||||
- 'src/models/**'
|
|
||||||
- 'src/ui/**'
|
|
||||||
- 'src/cli.py'
|
|
||||||
- 'src/main.py'
|
|
||||||
- 'tests/**'
|
- 'tests/**'
|
||||||
- 'pyproject.toml'
|
- 'pyproject.toml'
|
||||||
- 'requirements.txt'
|
- 'requirements.txt'
|
||||||
@@ -18,13 +12,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- 'src/api/**'
|
- 'src/**'
|
||||||
- 'src/config/**'
|
|
||||||
- 'src/git/**'
|
|
||||||
- 'src/models/**'
|
|
||||||
- 'src/ui/**'
|
|
||||||
- 'src/cli.py'
|
|
||||||
- 'src/main.py'
|
|
||||||
- 'tests/**'
|
- 'tests/**'
|
||||||
- 'pyproject.toml'
|
- 'pyproject.toml'
|
||||||
- 'requirements.txt'
|
- 'requirements.txt'
|
||||||
@@ -34,7 +22,8 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
@@ -45,13 +34,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -e ".[dev]"
|
pip install -e ".[dev]"
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
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
|
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-version 3.11
|
- name: Run pytest
|
||||||
|
run: |
|
||||||
|
pytest tests/test_models.py tests/test_config.py tests/test_cli.py tests/test_integration.py -v --tb=short
|
||||||
|
|
||||||
|
- name: Run ruff
|
||||||
|
run: ruff check src/
|
||||||
|
|
||||||
|
- name: Run mypy
|
||||||
|
run: mypy src/ --ignore-missing-imports --python-version 3.11
|
||||||
|
|||||||
Reference in New Issue
Block a user