Skip to content

Commit 62850a6

Browse files
committed
Split gpu ci workflow into single-gpu and multi-gpu
1 parent ec9bedf commit 62850a6

File tree

6 files changed

+214
-131
lines changed

6 files changed

+214
-131
lines changed

.github/workflows/gpu-ci.yml

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,35 @@ on:
1212

1313
jobs:
1414
build:
15-
runs-on: 2GPU
15+
runs-on: 1GPU
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
- name: Run tests
21+
run: |
22+
ref_type=${{ github.ref_type }}
23+
branch=main
24+
if [[ $ref_type == "tag"* ]]
25+
then
26+
raw=$(git branch -r --contains ${{ github.ref_name }})
27+
branch=${raw/origin\/}
28+
fi
29+
cd ${{ github.workspace }}; tox -r -e test-gpu -- $branch
1630
31+
multigpu:
32+
runs-on: 2GPU
1733
steps:
18-
- uses: actions/checkout@v3
19-
with:
20-
fetch-depth: 0
21-
- name: Run tests
22-
run: |
23-
ref_type=${{ github.ref_type }}
24-
branch=main
25-
if [[ $ref_type == "tag"* ]]
26-
then
27-
raw=$(git branch -r --contains ${{ github.ref_name }})
28-
branch=${raw/origin\/}
29-
fi
30-
cd ${{ github.workspace }}; tox -e test-gpu -- $branch
34+
- uses: actions/checkout@v3
35+
with:
36+
fetch-depth: 0
37+
- name: Run tests
38+
run: |
39+
ref_type=${{ github.ref_type }}
40+
branch=main
41+
if [[ $ref_type == "tag"* ]]
42+
then
43+
raw=$(git branch -r --contains ${{ github.ref_name }})
44+
branch=${raw/origin\/}
45+
fi
46+
cd ${{ github.workspace }}; tox -r -e test-gpu-multigpu -- $branch

0 commit comments

Comments
 (0)