Skip to content

chore: test PR

chore: test PR #926

name: Integration Test
on:
pull_request_target:
types: [ labeled, opened, synchronize, reopened, ready_for_review ]
branches:
- "main"
- "release-**"
paths-ignore:
- "docs/**"
- "**.md"
- CODEOWNERS
- LICENSE
- "LICENSES/**"
- ".reuse/**"
- "config/**"
- "data/**"
- "doc_indexer/**"
- "scripts/**"
## **IMPORTANT**: If any changes are made to how to run the integration tests. Make sure to update the steps for
## integration-tests in the create-release.yml workflow as well.
jobs:
integration-test:
if: contains(github.event.pull_request.labels.*.name, 'run-integration-test')
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Extract Python version
id: python-version
run: ./scripts/shell/extract-python-version.sh
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: poetry install --with dev
- name: Run integration tests
env:
LOG_LEVEL: "DEBUG"
run: |
echo "${{ secrets.INTEGRATION_TEST_CONFIG }}" | base64 --decode | jq > $GITHUB_WORKSPACE/config/config.json
poetry run poe test-integration