Repository navigation
Feat/chain engine #10
Workflow file for this run
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
| # .github/workflows/ci.yml | |
| name: ci | |
| on: | |
| push: { branches: [main] } | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| - run: uv sync --dev | |
| - run: uv run ruff check . | |
| - run: uv run ruff format --check . | |
| - run: uv run ty check | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| services: | |
| pg: | |
| image: timescale/timescaledb-ha:pg17-ts2.25 | |
| env: | |
| POSTGRES_USER: sqlpush | |
| POSTGRES_PASSWORD: sqlpush | |
| POSTGRES_DB: sqlpush_test | |
| ports: ["5432:5432"] | |
| options: >- | |
| --health-cmd "pg_isready -U sqlpush" | |
| --health-interval 5s --health-timeout 5s --health-retries 10 | |
| env: | |
| SQLPUSH_TEST_DSN: postgresql+psycopg://sqlpush:sqlpush@localhost:5432/sqlpush_test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: { python-version: "${{ matrix.python-version }}" } | |
| - run: uv sync --dev | |
| - run: uv run pytest -v | |
| alembic-compat: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| alembic: ["1.18.*", "1.19.*"] | |
| services: | |
| pg: | |
| image: timescale/timescaledb-ha:pg17-ts2.25 | |
| env: | |
| POSTGRES_USER: sqlpush | |
| POSTGRES_PASSWORD: sqlpush | |
| POSTGRES_DB: sqlpush_test | |
| ports: ["5432:5432"] | |
| options: >- | |
| --health-cmd "pg_isready -U sqlpush" | |
| --health-interval 5s --health-timeout 5s --health-retries 10 | |
| env: | |
| SQLPUSH_TEST_DSN: postgresql+psycopg://sqlpush:sqlpush@localhost:5432/sqlpush_test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| - run: uv sync --dev && uv pip install "alembic==${{ matrix.alembic }}" | |
| - run: uv run --no-sync pytest tests/test_diff.py tests/test_api.py -v |