[Integration][BitBucket] PR identifiers not unique across repos #8736
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: Integrations Test | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
detect-changes: | |
uses: ./.github/workflows/detect-changes-matrix.yml | |
test: | |
name: ${{ format('🚢 {0}', matrix.folder) }} | |
needs: detect-changes | |
runs-on: ubuntu-latest | |
if: ${{ needs.detect-changes.outputs.integrations != '[]' }} | |
strategy: | |
max-parallel: 5 | |
matrix: | |
folder: ${{ fromJson(needs.detect-changes.outputs.integrations) }} | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v5 | |
- name: Install poetry | |
run: pipx install 'poetry>=1.0.0,<2.0.0' | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'poetry' | |
- name: Install dependencies | |
working-directory: ${{ format('integrations/{0}', matrix.folder) }} | |
run: | | |
make install | |
- name: Test | |
working-directory: ${{ format('integrations/{0}', matrix.folder) }} | |
env: | |
PYTEST_ADDOPTS: --junitxml=junit/test-results-${{ format('integrations/{0}', matrix.folder) }}.xml | |
run: | | |
mkdir -p /tmp/ocean/prometheus/metrics | |
export PROMETHEUS_MULTIPROC_DIR=/tmp/ocean/prometheus/metrics | |
make test | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v5 | |
if: ${{ always() }} | |
with: | |
report_paths: '**/junit/test-results-**/*.xml' | |
include_passed: true | |
require_tests: true | |
fail_on_failure: true |