fix(catalog): keep check-sources from creating a database file #3034
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-benchmark | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| changes: | |
| uses: ./.github/workflows/detect-changes.yml | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| benchmark: | |
| needs: changes | |
| if: needs.changes.outputs.code == 'true' | |
| runs-on: ubuntu-latest | |
| 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: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install the project | |
| run: uv sync --locked --all-extras --all-groups | |
| working-directory: ${{ github.workspace }} | |
| - name: start services | |
| run: docker compose up --build --wait | |
| - name: Run benchmarks | |
| run: > | |
| uv run --no-sync pytest | |
| --import-mode=importlib | |
| --benchmark-json=benchmark-results.json | |
| --benchmark-warmup=on | |
| -m benchmark | |
| python/ | |
| working-directory: ${{ github.workspace }} | |
| env: | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_USER: postgres | |
| POSTGRES_HOST: localhost | |
| POSTGRES_PORT: 5432 | |
| POSTGRES_DATABASE: ibis_testing | |
| - name: Store / compare benchmark results | |
| uses: benchmark-action/github-action-benchmark@v1 | |
| with: | |
| tool: pytest | |
| output-file-path: benchmark-results.json | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| auto-push: ${{ github.event_name != 'pull_request' }} | |
| alert-threshold: "180%" | |
| comment-on-alert: true | |
| fail-on-alert: true |