Skip to content

Commit 75d51b9

Browse files
committed
test
1 parent d225d93 commit 75d51b9

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ jobs:
7272
contents: read
7373
packages: write
7474
uses: ./.github/workflows/build-test-linux-x86_64.yml
75+
with:
76+
job-name: build-test-all-linux-x86_64
7577

7678
trigger-windows-test:
7779
needs: [fail-fast-test]
@@ -82,6 +84,8 @@ jobs:
8284
contents: read
8385
packages: write
8486
uses: ./.github/workflows/build-test-windows.yml
87+
with:
88+
job-name: build-test-all-windows
8589

8690
wait-all-jobs:
8791
needs: [trigger-linux-test, trigger-windows-test]

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Lan test workflow x86_64 wheels
33
on:
44
#pull_request:
55
workflow_call:
6+
inputs:
7+
job-name:
8+
required: true
9+
default: "build-test-linux-x86_64"
610
push:
711
branches:
812
- main
@@ -15,7 +19,7 @@ on:
1519
workflow_dispatch:
1620

1721
jobs:
18-
generate-matrix:
22+
generate-linux-x86_64-matrix:
1923
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
2024
with:
2125
package-type: wheel
@@ -25,8 +29,8 @@ jobs:
2529
with-rocm: false
2630
with-cpu: false
2731

28-
filter-matrix:
29-
needs: [generate-matrix]
32+
filter-linux-x86_64-matrix:
33+
needs: [generate-linux-x86_64-matrix]
3034
outputs:
3135
matrix: ${{ steps.generate.outputs.matrix }}
3236
runs-on: ubuntu-latest
@@ -41,9 +45,10 @@ jobs:
4145
id: generate
4246
run: |
4347
set -eou pipefail
44-
MATRIX_BLOB=${{ toJSON(needs.generate-matrix.outputs.matrix) }}
48+
MATRIX_BLOB=${{ toJSON(needs.generate-linux-x86_64-matrix.outputs.matrix) }}
4549
MATRIX_BLOB="$(python3 .github/scripts/filter-matrix.py --matrix "${MATRIX_BLOB}")"
4650
echo "${MATRIX_BLOB}"
51+
echo "${{ github.workflow }}-linux-x86_64-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}"
4752
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}"
4853
4954
# build:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
id: generate
4545
run: |
4646
set -eou pipefail
47+
echo "${{ github.workflow }}-windows-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}"
4748
MATRIX_BLOB=${{ toJSON(needs.generate-windows-matrix.outputs.matrix) }}
4849
MATRIX_BLOB="$(python3 .github/scripts/filter-matrix.py --matrix "${MATRIX_BLOB}")"
4950
echo "${MATRIX_BLOB}"

0 commit comments

Comments
 (0)