- Only lint errorfix/ directory, not tests/ from all projects - Add mypy type checking step for comprehensive validation
45 lines
969 B
YAML
45 lines
969 B
YAML
name: ErrorFix CLI CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'errorfix/**'
|
|
- 'tests/**'
|
|
- 'pyproject.toml'
|
|
- 'requirements.txt'
|
|
- '.gitea/workflows/errorfix-ci.yml'
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- 'errorfix/**'
|
|
- 'tests/**'
|
|
- 'pyproject.toml'
|
|
- 'requirements.txt'
|
|
- '.gitea/workflows/errorfix-ci.yml'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e ".[dev]"
|
|
|
|
- name: Run tests
|
|
run: python -m pytest errorfix/tests/ -v --tb=short
|
|
|
|
- name: Run linting
|
|
run: |
|
|
pip install ruff mypy
|
|
ruff check errorfix/
|
|
python -m mypy errorfix/ --ignore-missing-imports
|