feat: Add a custom pyiceberg destination for dlt #2
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
| name: End-to-end tests for pipelines-common package | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| description: "The branch or tag to checkout" | |
| required: false | |
| default: "" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # ----------- Checkout ----------- | |
| - name: Checkout for push or pull_request event | |
| if: github.event_name == 'push' || github.event_name == 'pull_request' | |
| uses: actions/checkout@v4 | |
| - name: Checkout using ref (workflow_dispatch) | |
| if: github.event_name == 'workflow_dispatch' && github.event.inputs.ref != '' | |
| uses: actions/checkout@v4.2.2 | |
| with: | |
| ref: ${{ github.event.inputs.ref }} | |
| # -------------------------------- | |
| - name: Start fresh Lakekeeper instance | |
| uses: hoverkraft-tech/compose-action@v2.0.1 | |
| with: | |
| compose-file: "infra/local/docker-compose.yml" | |
| services: | | |
| lakekeeper | |
| - name: Run pipeline-common e2e tests | |
| uses: addnab/docker-run-action@v3 | |
| with: | |
| registry: ghcr.io | |
| image: astral-sh/uv:python3.12-bookworm-slim | |
| docker_network: lakehouse_net # must match the name in the docker-compose configuration | |
| options: | | |
| -v ${{ github.workspace }}/pipelines/pipelines-common:/work -e UV_LINK_MODE=copy -e DESTINATION__PYICEBERG__CREDENTIALS__URI=http://lakekeeper:8181/catalog | |
| run: | | |
| whoami | |
| id | |
| uv run pytest --durations-min=0.5 e2e_tests --cache-clear |