fix(catalog): keep check-sources from creating a database file #8024
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: ci-test-examples | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| tags: | |
| - '*' | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| changes: | |
| uses: ./.github/workflows/detect-changes.yml | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| linux: | |
| needs: changes | |
| if: needs.changes.outputs.code == 'true' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| target: ["x86_64"] | |
| python-version: ["3.11"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: extractions/setup-just@v4 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: download test data | |
| run: just download-data | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install the project | |
| run: uv sync --locked --extra examples --extra pyiceberg --extra postgres --extra sqlite --group dev --group test | |
| working-directory: ${{ github.workspace }} | |
| - name: start services | |
| run: docker compose up --build --wait | |
| - name: pytest | |
| run: uv run --no-sync pytest --import-mode=importlib python/xorq/tests/test_examples.py -v --cov --cov-report=xml | |
| working-directory: ${{ github.workspace }} | |
| env: | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_USER: postgres | |
| POSTGRES_HOST: localhost | |
| POSTGRES_PORT: 5432 | |
| POSTGRES_DATABASE: ibis_testing | |
| WEATHER_FEATURES_PORT: 8819 | |
| WEATHER_API_URL: https://api.openweathermap.org/data/2.5/weather | |
| OPENWEATHER_API_KEY: ${{ secrets.OPENWEATHER_API_KEY }} | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5.5.4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: examples | |
| fail_ci_if_error: false | |