Skip to content

Test only(Do not review): one main workflow, if fast feed back loop is success then trigger all other workflows #4

Test only(Do not review): one main workflow, if fast feed back loop is success then trigger all other workflows

Test only(Do not review): one main workflow, if fast feed back loop is success then trigger all other workflows #4

name: Lan test workflow main
on:
pull_request:
push:
branches:
- main
- nightly
- release/*
tags:
# NOTE: Binary build pipelines should only get triggered on release candidate builds
# Release candidate tags look like: v1.11.0-rc1
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
workflow_dispatch:
permissions:
id-token: write
contents: read
packages: write
jobs:
generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with:
package-type: wheel
os: linux
test-infra-repository: pytorch/test-infra
test-infra-ref: main
with-rocm: false
with-cpu: false
filter-matrix:
needs: [generate-matrix]
outputs:
matrix: ${{ steps.generate.outputs.matrix }}
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: actions/checkout@v4
with:
repository: pytorch/tensorrt
- name: Generate matrix
id: generate
run: |
set -eou pipefail
MATRIX_BLOB=${{ toJSON(needs.generate-matrix.outputs.matrix) }}
MATRIX_BLOB="$(python3 .github/scripts/filter-matrix.py --matrix "${MATRIX_BLOB}")"
echo "${MATRIX_BLOB}"
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}"
trigger-linux-test:
needs: [filter-matrix]
permissions:
id-token: write
contents: read
packages: write
uses: ./.github/workflows/build-test-linux-x86_64.yml
trigger-windows-test:
needs: [filter-matrix]
permissions:
id-token: write
contents: read
packages: write
uses: ./.github/workflows/build-test-windows.yml

Check failure on line 67 in .github/workflows/build-test-all.yml

View workflow run for this annotation

GitHub Actions / Lan test workflow main

Invalid workflow file

The workflow is not valid. In .github/workflows/build-test-all.yml (Line: 67, Col: 11): Error from called workflow pytorch/TensorRT/.github/workflows/build-test-windows.yml@7dae7f2aa2ee4e549fd58f8d61609aa5eca0c3c1 (Line: 6, Col: 12): Unexpected value ''
wait-all-jobs:
needs: [trigger-linux-test, trigger-windows-test]
runs-on: ubuntu-latest
steps:
- name: Wait for all jobs to complete
run: |
echo "Waiting for all jobs to complete..."
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
cancel-in-progress: true