diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml new file mode 100755 index 0000000..2eb7ce5 --- /dev/null +++ b/.github/workflows/pr-validation.yml @@ -0,0 +1,48 @@ +name: PR Validation + +on: + pull_request: + branches: + - main + +jobs: + validate: + runs-on: ubuntu-latest + + services: + postgres: + image: postgres:15 + env: + POSTGRES_USER: dev + POSTGRES_PASSWORD: dev + POSTGRES_DB: dev + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + + steps: + - name: Checkout PR code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install datavault4sqlmesh from PR branch + run: pip install ".[integration]" + + - name: Checkout demo project + uses: actions/checkout@v4 + with: + repository: ScalefreeCOM/datavault4sqlmesh-demo + path: demo + token: ${{ secrets.DEMO_REPO_TOKEN }} + + - name: Run SQLMesh plan + working-directory: demo + run: sqlmesh plan --auto-apply --no-prompts --run --ignore-cron diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.release-please-manifest.json b/.release-please-manifest.json old mode 100644 new mode 100755 diff --git a/CHANGELOG.md b/CHANGELOG.md old mode 100644 new mode 100755 diff --git a/CLAUDE.md b/CLAUDE.md old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/datavault4sqlmesh/__init__.py b/datavault4sqlmesh/__init__.py old mode 100644 new mode 100755 diff --git a/datavault4sqlmesh/config.py b/datavault4sqlmesh/config.py old mode 100644 new mode 100755 diff --git a/datavault4sqlmesh/models/__init__.py b/datavault4sqlmesh/models/__init__.py old mode 100644 new mode 100755 diff --git a/datavault4sqlmesh/models/_utils.py b/datavault4sqlmesh/models/_utils.py old mode 100644 new mode 100755 diff --git a/datavault4sqlmesh/models/hub.py b/datavault4sqlmesh/models/hub.py old mode 100644 new mode 100755 diff --git a/datavault4sqlmesh/models/link.py b/datavault4sqlmesh/models/link.py old mode 100644 new mode 100755 diff --git a/datavault4sqlmesh/models/satellite.py b/datavault4sqlmesh/models/satellite.py old mode 100644 new mode 100755 diff --git a/datavault4sqlmesh/models/satellite_v1.py b/datavault4sqlmesh/models/satellite_v1.py old mode 100644 new mode 100755 diff --git a/datavault4sqlmesh/models/stage.py b/datavault4sqlmesh/models/stage.py old mode 100644 new mode 100755 diff --git a/datavault4sqlmesh/schema/__init__.py b/datavault4sqlmesh/schema/__init__.py old mode 100644 new mode 100755 diff --git a/datavault4sqlmesh/schema/inference.py b/datavault4sqlmesh/schema/inference.py old mode 100644 new mode 100755 diff --git a/docs/01_model-functions/01_documentation/01_documentation.md b/docs/01_model-functions/01_documentation/01_documentation.md old mode 100644 new mode 100755 diff --git a/docs/01_model-functions/02_staging/02_stage-model.md b/docs/01_model-functions/02_staging/02_stage-model.md old mode 100644 new mode 100755 diff --git a/docs/01_model-functions/02_staging/_category_.json b/docs/01_model-functions/02_staging/_category_.json old mode 100644 new mode 100755 diff --git a/docs/01_model-functions/03_hubs/03_hub-model.md b/docs/01_model-functions/03_hubs/03_hub-model.md old mode 100644 new mode 100755 diff --git a/docs/01_model-functions/03_hubs/_category_.json b/docs/01_model-functions/03_hubs/_category_.json old mode 100644 new mode 100755 diff --git a/docs/01_model-functions/04_links/04_link-model.md b/docs/01_model-functions/04_links/04_link-model.md old mode 100644 new mode 100755 diff --git a/docs/01_model-functions/04_links/_category_.json b/docs/01_model-functions/04_links/_category_.json old mode 100644 new mode 100755 diff --git a/docs/01_model-functions/05_satellites/05_satellite-model.md b/docs/01_model-functions/05_satellites/05_satellite-model.md old mode 100644 new mode 100755 diff --git a/docs/01_model-functions/05_satellites/06_satellite-v1-model.md b/docs/01_model-functions/05_satellites/06_satellite-v1-model.md old mode 100644 new mode 100755 diff --git a/docs/01_model-functions/05_satellites/_category_.json b/docs/01_model-functions/05_satellites/_category_.json old mode 100644 new mode 100755 diff --git a/docs/01_model-functions/_category_.json b/docs/01_model-functions/_category_.json old mode 100644 new mode 100755 diff --git a/pyproject.toml b/pyproject.toml old mode 100644 new mode 100755 diff --git a/release-please-config.json b/release-please-config.json old mode 100644 new mode 100755 diff --git a/tests/__init__.py b/tests/__init__.py old mode 100644 new mode 100755 diff --git a/tests/conftest.py b/tests/conftest.py old mode 100644 new mode 100755 diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py old mode 100644 new mode 100755 diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py old mode 100644 new mode 100755 diff --git a/tests/integration/helpers.py b/tests/integration/helpers.py old mode 100644 new mode 100755 diff --git a/tests/integration/test_incremental.py b/tests/integration/test_incremental.py old mode 100644 new mode 100755 diff --git a/tests/test_hub.py b/tests/test_hub.py old mode 100644 new mode 100755 diff --git a/tests/test_link.py b/tests/test_link.py old mode 100644 new mode 100755 diff --git a/tests/test_satellite.py b/tests/test_satellite.py old mode 100644 new mode 100755 diff --git a/tests/test_satellite_v1.py b/tests/test_satellite_v1.py old mode 100644 new mode 100755 diff --git a/tests/test_schema_inference.py b/tests/test_schema_inference.py old mode 100644 new mode 100755 diff --git a/tests/test_stage.py b/tests/test_stage.py old mode 100644 new mode 100755