Skip to content

Commit ed7316b

Browse files
committed
add test all workflow
1 parent 8c84dea commit ed7316b

File tree

3 files changed

+280
-226
lines changed

3 files changed

+280
-226
lines changed

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Lan test workflow main
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- nightly
9+
- release/*
10+
tags:
11+
# NOTE: Binary build pipelines should only get triggered on release candidate builds
12+
# Release candidate tags look like: v1.11.0-rc1
13+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
14+
workflow_dispatch:
15+
16+
jobs:
17+
generate-matrix:
18+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
19+
with:
20+
package-type: wheel
21+
os: linux
22+
test-infra-repository: pytorch/test-infra
23+
test-infra-ref: main
24+
with-rocm: false
25+
with-cpu: false
26+
27+
filter-matrix:
28+
needs: [generate-matrix]
29+
outputs:
30+
matrix: ${{ steps.generate.outputs.matrix }}
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/setup-python@v5
34+
with:
35+
python-version: '3.11'
36+
- uses: actions/checkout@v4
37+
with:
38+
repository: pytorch/tensorrt
39+
- name: Generate matrix
40+
id: generate
41+
run: |
42+
set -eou pipefail
43+
MATRIX_BLOB=${{ toJSON(needs.generate-matrix.outputs.matrix) }}
44+
MATRIX_BLOB="$(python3 .github/scripts/filter-matrix.py --matrix "${MATRIX_BLOB}")"
45+
echo "${MATRIX_BLOB}"
46+
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}"
47+
48+
trigger-linux-test:
49+
needs: [filter-matrix]
50+
uses: ./.github/workflows/build-test-linux-x86_64.yml
51+
52+
trigger-windows-test:
53+
needs: [filter-matrix]
54+
uses: ./.github/workflows/build-test-windows.yml

.github/workflows/build-test-linux-x86_64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and test Linux x86_64 wheels
1+
name: Lan test workflow x86_64 wheels
22

33
on:
44
pull_request:

0 commit comments

Comments
 (0)