Skip to content

Commit 103cc13

Browse files
committed
[CI] Use collapsible section in github workflow logs
stack-info: PR: #190, branch: oulgen/stack/12
1 parent 2736ff4 commit 103cc13

File tree

1 file changed

+36
-21
lines changed

1 file changed

+36
-21
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,39 @@ jobs:
1818
fail-fast: true
1919
matrix:
2020
python-version: ["3.10", "3.12"]
21-
include:
22-
- name: A10G
23-
runs-on: linux.g5.4xlarge.nvidia.gpu
24-
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu126'
25-
gpu-arch-type: "cuda"
26-
gpu-arch-version: "12.6"
27-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
28-
with:
29-
timeout: 60
30-
runner: ${{ matrix.runs-on }}
31-
gpu-arch-type: ${{ matrix.gpu-arch-type }}
32-
gpu-arch-version: ${{ matrix.gpu-arch-version }}
33-
submodules: recursive
34-
script: |
35-
conda create -n venv python=${{ matrix.python-version }} -y
36-
conda activate venv
37-
python -m pip install --upgrade pip
38-
pip install ${{ matrix.torch-spec }}
39-
./.github/scripts/install_triton.sh
40-
pip install -r requirements.txt
41-
python -m unittest discover -s test/ -p "*.py" -v -t .
21+
runs-on: [linux.g5.4xlarge.nvidia.gpu]
22+
torch-spec: ['--pre torch --index-url https://download.pytorch.org/whl/nightly/cu126']
23+
gpu-arch-type: ["cuda"]
24+
gpu-arch-version: ["12.6"]
25+
runs-on: ${{ matrix.runs-on }}
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
with:
30+
submodules: recursive
31+
32+
- name: Setup environment
33+
run: |
34+
conda create -n venv python=${{ matrix.python-version }} -y
35+
conda activate venv
36+
python -m pip install --upgrade pip
37+
38+
- name: Install PyTorch
39+
run: |
40+
conda activate venv
41+
pip install ${{ matrix.torch-spec }}
42+
43+
- name: Install Triton
44+
run: |
45+
conda activate venv
46+
./.github/scripts/install_triton.sh
47+
48+
- name: Install requirements
49+
run: |
50+
conda activate venv
51+
pip install -r requirements.txt
52+
53+
- name: Run tests
54+
run: |
55+
conda activate venv
56+
python -m unittest discover -s test/ -p "*.py" -v -t .

0 commit comments

Comments
 (0)