DRY ogc_features: shared collection/geometry/id helpers #56
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: Orchestration CI | |
| on: | |
| push: | |
| paths: | |
| - 'orchestration/**' | |
| - 'backend/**' | |
| pull_request: | |
| branches: [ "pre-production" ] | |
| paths: | |
| - 'orchestration/**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint-and-import-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Set up Python | |
| run: uv python install 3.14 | |
| - name: Install root package deps | |
| run: uv sync --extra dev | |
| - name: Install orchestration deps | |
| run: uv pip install dagster dagster-gcp google-cloud-storage google-cloud-secret-manager Jinja2 | |
| - name: Lint orchestration with flake8 | |
| run: | | |
| uv run flake8 orchestration/ --count --select=E9,F63,F7,F82 --show-source --statistics | |
| uv run flake8 orchestration/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
| - name: Import check — definitions load without error | |
| run: | | |
| uv run python -c " | |
| import sys; sys.path.insert(0, '.') | |
| from orchestration.definitions import defs | |
| assert len(list(defs.assets)) > 0, 'No assets defined' | |
| print(f'OK: {len(list(defs.assets))} assets, {len(defs.schedules)} schedules') | |
| " |