Skip to content

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

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 #1

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:
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]
uses: ./.github/workflows/build-test-linux-x86_64.yml

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

View workflow run for this annotation

GitHub Actions / .github/workflows/build-test-all.yml

Invalid workflow file

error parsing called workflow ".github/workflows/build-test-all.yml" -> "./.github/workflows/build-test-linux-x86_64.yml" : workflow is not reusable as it is missing a `on.workflow_call` trigger
trigger-windows-test:
needs: [filter-matrix]
uses: ./.github/workflows/build-test-windows.yml