fix: resolve CI/CD issues - rewrote CI workflow and fixed Python linting errors
Some checks failed
DevDash CLI CI / test (push) Has been cancelled
Some checks failed
DevDash CLI CI / test (push) Has been cancelled
This commit is contained in:
@@ -1,19 +1,56 @@
|
|||||||
name: CI
|
name: DevDash CLI CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- 'src/api/**'
|
||||||
|
- 'src/config/**'
|
||||||
|
- 'src/git/**'
|
||||||
|
- 'src/models/**'
|
||||||
|
- 'src/ui/**'
|
||||||
|
- 'src/cli.py'
|
||||||
|
- 'src/main.py'
|
||||||
|
- 'tests/**'
|
||||||
|
- 'pyproject.toml'
|
||||||
|
- 'requirements.txt'
|
||||||
|
- '.gitea/workflows/devdash-ci.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- 'src/api/**'
|
||||||
|
- 'src/config/**'
|
||||||
|
- 'src/git/**'
|
||||||
|
- 'src/models/**'
|
||||||
|
- 'src/ui/**'
|
||||||
|
- 'src/cli.py'
|
||||||
|
- 'src/main.py'
|
||||||
|
- 'tests/**'
|
||||||
|
- 'pyproject.toml'
|
||||||
|
- 'requirements.txt'
|
||||||
|
- '.gitea/workflows/devdash-ci.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
- run: pip install -e ".[dev]"
|
|
||||||
- run: pytest tests/ -v --tb=short
|
- name: Install dependencies
|
||||||
- run: ruff check src/ tests/
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -e ".[dev]"
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: python -m pytest tests/ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user