Skip to content

Commit 223dc47

Browse files
committed
Update on "Set up CI"
[ghstack-poisoned]
1 parent f65b115 commit 223dc47

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- nightly
8+
- main
9+
- release/*
10+
workflow_dispatch:
11+
12+
jobs:
13+
unittests-linux:
14+
strategy:
15+
matrix:
16+
python-version:
17+
- "3.8"
18+
runner: ["linux.12xlarge"]
19+
gpu-arch-type: ["cpu"]
20+
include:
21+
- python-version: 3.11
22+
runner: linux.g5.4xlarge.nvidia.gpu
23+
gpu-arch-type: cuda
24+
gpu-arch-version: "11.8"
25+
fail-fast: false
26+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
27+
with:
28+
repository: pytorch/extension-cpp
29+
runner: ${{ matrix.runner }}
30+
gpu-arch-type: ${{ matrix.gpu-arch-type }}
31+
gpu-arch-version: ${{ matrix.gpu-arch-version }}
32+
timeout: 120
33+
test-infra-ref: master
34+
script: |
35+
set -euo pipefail
36+
37+
export PYTHON_VERSION=${{ matrix.python-version }}
38+
export GPU_ARCH_TYPE=${{ matrix.gpu-arch-type }}
39+
export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }}
40+
41+
./.github/scripts/unittest.sh

0 commit comments

Comments
 (0)