Merge nonzero and where individual PR #2332 #231
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: On PR Update | |
| on: | |
| pull_request_target: | |
| types: [opened, reopened, synchronize] | |
| paths: | |
| - '.github/**' | |
| - 'heat/**' | |
| - 'tests/**' | |
| jobs: | |
| quick-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| py-version: | |
| - '3.11' # Oldest supported | |
| - '3.14' # Latest stable | |
| mpi: [ 'mpich' ] | |
| pytorch-version: | |
| - 'torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1' # Oldest supported | |
| - 'torch==2.11.0 torchvision==0.26.0 torchaudio==2.11.0' # Latest stable | |
| exclude: | |
| - py-version: '3.14' | |
| pytorch-version: 'torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1' | |
| name: Quick Tests - Py${{ matrix.py-version }} with ${{ matrix.pytorch-version }}" | |
| steps: | |
| - name: Harden the runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - uses: ./.github/actions/gh_tests | |
| with: | |
| mode: medium | |
| sha: ${{ github.event.pull_request.head.sha }} | |
| py-version: ${{ matrix.py-version }} | |
| mpi: ${{ matrix.mpi }} | |
| pytorch-version: ${{ matrix.pytorch-version }} | |
| trigger-tests: | |
| name: Trigger Codebase Tests | |
| runs-on: ubuntu-latest | |
| needs: quick-tests | |
| if: ${{ !startsWith(github.head_ref, 'dependabot') }} | |
| steps: | |
| - name: Harden the runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - uses: ./.github/actions/trigger_codebase_tests | |
| with: | |
| branch: ${{ github.head_ref }} | |
| sha: ${{ github.event.pull_request.head.sha }} | |
| pr_number: ${{ github.event.pull_request.number }} | |
| trigger_token: ${{ secrets.CX_TRIGGER_TOKEN }} | |
| trigger-benchmarks: | |
| name: Trigger Codebase Benchmarks | |
| runs-on: ubuntu-latest | |
| needs: trigger-tests | |
| if: ${{ !startsWith(github.head_ref, 'dependabot') && contains(github.event.pull_request.labels.*.name, 'benchmark PR') }} | |
| steps: | |
| - name: Harden the runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - uses: ./.github/actions/trigger_codebase_benchmarks | |
| with: | |
| branch: ${{ github.head_ref }} | |
| sha: ${{ github.event.pull_request.head.sha }} | |
| author: ${{ github.event.pull_request.assignee.login || 'heat_team' }} | |
| pr_number: ${{ github.event.pull_request.number }} | |
| trigger_token: ${{ secrets.CX_TRIGGER_TOKEN }} | |
| dependency-review: | |
| name: Dependency Review | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden the runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: 'Checkout Repository' | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: 'Dependency Review' | |
| uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0 |