Integration Tests #5
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: Integration Tests | |
| on: | |
| pull_request: | |
| branches: [main] | |
| merge_group: | |
| types: [checks_requested] | |
| workflow_dispatch: | |
| concurrency: | |
| group: python-integration-tests-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| integration-tests: | |
| name: integration-tests | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: PR placeholder | |
| if: github.event_name == 'pull_request' | |
| run: echo "Integration tests run only in the merge queue." | |
| - name: Check out repository | |
| if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install Poetry | |
| if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' | |
| run: python -m pip install --upgrade pip poetry | |
| - name: Show tool versions | |
| if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' | |
| run: | | |
| python --version | |
| poetry --version | |
| - name: Install dependencies | |
| if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' | |
| run: poetry install --with dev --no-interaction | |
| - name: Build package | |
| if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' | |
| run: poetry build | |
| - name: Run integration tests | |
| if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' | |
| run: poetry run pytest tests/integration |