This commit is contained in:
@@ -1,15 +1,14 @@
|
|||||||
name: CI
|
name: CI/CD
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, master]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main, master]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -23,11 +22,14 @@ jobs:
|
|||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -e ".[dev]"
|
pip install -e ".[dev]"
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run linter
|
||||||
run: |
|
run: ruff check src/ tests/
|
||||||
PYTHONPATH=src python -m pytest tests/ -v --tb=short
|
|
||||||
|
|
||||||
- name: Run linting
|
- name: Run type checker
|
||||||
run: |
|
run: mypy src/ --ignore-missing-imports
|
||||||
pip install ruff
|
|
||||||
ruff check .
|
- name: Run tests
|
||||||
|
run: pytest tests/ -v --tb=short
|
||||||
|
|
||||||
|
- name: Run coverage
|
||||||
|
run: pytest tests/ --cov=src --cov-report=term-missing
|
||||||
|
|||||||
Reference in New Issue
Block a user