chore(deps): update ruff requirement from >=0.2.0 to >=0.15.10 #222
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Backend CI | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'python-packages/dataing/**' | |
| - 'python-packages/dataing-ee/**' | |
| - 'pyproject.toml' | |
| - 'uv.lock' | |
| - '.github/workflows/ci-backend.yml' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'python-packages/dataing/**' | |
| - 'python-packages/dataing-ee/**' | |
| - 'pyproject.toml' | |
| - 'uv.lock' | |
| - '.github/workflows/ci-backend.yml' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:15 | |
| env: | |
| POSTGRES_USER: test | |
| POSTGRES_PASSWORD: test | |
| POSTGRES_DB: test | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Run Ruff | |
| run: uv run ruff check python-packages/dataing/src python-packages/dataing-ee/src | |
| - name: Run mypy | |
| run: uv run mypy python-packages/dataing/src python-packages/dataing-ee/src | |
| # Run database migrations for integration tests | |
| - name: Run migrations | |
| run: | | |
| for f in python-packages/dataing/migrations/*.sql; do | |
| echo "Running $f..." | |
| psql -h localhost -U test -d test -f "$f" 2>&1 | grep -v "^NOTICE:" || true | |
| done | |
| env: | |
| PGPASSWORD: test | |
| # Run tests per-package to avoid conftest.py module conflicts | |
| - name: Run tests | |
| run: | | |
| uv run pytest python-packages/dataing/tests --cov=python-packages/dataing/src/dataing --cov-report=xml --cov-append | |
| uv run pytest python-packages/dataing-ee/tests --cov=python-packages/dataing-ee/src/dataing_ee --cov-report=xml --cov-append | |
| env: | |
| DATABASE_URL: postgresql://test:test@localhost:5432/test | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: coverage.xml | |
| fail_ci_if_error: false |