diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml index e2942b809..3f3b99e9c 100644 --- a/.github/workflows/ci-python.yml +++ b/.github/workflows/ci-python.yml @@ -23,7 +23,7 @@ env: jobs: agent-framework-python: name: agent-framework-python (${{ matrix.dependency-lane }}, Python ${{ matrix.python-version }}) - runs-on: ubuntu-latest + runs-on: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && 'peak-ubuntu-24.04-4' || 'ubuntu-latest' }} timeout-minutes: 15 strategy: fail-fast: false @@ -77,7 +77,7 @@ jobs: openai-sdk-python: name: openai-sdk-python (${{ matrix.dependency-lane }}, Python ${{ matrix.python-version }}) - runs-on: ubuntu-latest + runs-on: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && 'peak-ubuntu-24.04-4' || 'ubuntu-latest' }} timeout-minutes: 15 strategy: fail-fast: false @@ -145,7 +145,7 @@ jobs: cartesia-sdk-python: name: cartesia-sdk-python (${{ matrix.dependency-lane }}, Python ${{ matrix.python-version }}) - runs-on: ubuntu-latest + runs-on: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && 'peak-ubuntu-24.04-4' || 'ubuntu-latest' }} timeout-minutes: 15 strategy: fail-fast: false @@ -202,7 +202,7 @@ jobs: pipecat-sdk-python: name: pipecat-sdk-python (${{ matrix.dependency-lane }}, Python ${{ matrix.python-version }}) - runs-on: ubuntu-latest + runs-on: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && 'peak-ubuntu-24.04-4' || 'ubuntu-latest' }} timeout-minutes: 15 strategy: fail-fast: false @@ -259,7 +259,7 @@ jobs: livekit-sdk-python: name: livekit-sdk-python (${{ matrix.dependency-lane }}, Python ${{ matrix.python-version }}) - runs-on: ubuntu-latest + runs-on: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && 'peak-ubuntu-24.04-4' || 'ubuntu-latest' }} timeout-minutes: 15 strategy: fail-fast: false diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a81e979e..a20106e9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ env: jobs: quality-checks: name: Quality Checks - runs-on: ubuntu-latest + runs-on: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && 'peak-ubuntu-24.04-4' || 'ubuntu-latest' }} timeout-minutes: 15 steps: - name: Checkout code