Skip to content

Commit a47b394

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

File tree

6 files changed

+202
-119
lines changed

6 files changed

+202
-119
lines changed

.github/workflows/gpu-ci.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,24 @@ 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:
1834
- uses: actions/checkout@v3
1935
with:
@@ -27,4 +43,4 @@ jobs:
2743
raw=$(git branch -r --contains ${{ github.ref_name }})
2844
branch=${raw/origin\/}
2945
fi
30-
cd ${{ github.workspace }}; tox -e test-gpu -- $branch
46+
cd ${{ github.workspace }}; tox -r -e test-gpu-multigpu -- $branch

0 commit comments

Comments
 (0)