Skip to content

Commit 4003322

Browse files
committed
support for whole python version matrix
1 parent f402aee commit 4003322

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/test-linux-cpu.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Unit-tests on Linux CPU
2+
23
on:
34
pull_request:
45
push:
@@ -7,8 +8,10 @@ on:
78
- main
89
- release/*
910
workflow_dispatch:
11+
1012
env:
1113
CHANNEL: "nightly"
14+
1215
jobs:
1316
tests:
1417
name: "Unit-tests on Linux CPU"
@@ -17,7 +20,7 @@ jobs:
1720
image: pytorch/conda-builder:cpu
1821
strategy:
1922
matrix:
20-
py_vers: ["3.8"]
23+
py_vers: ["3.7", "3.8", "3.9", "3.10"]
2124

2225
steps:
2326
- name: Checkout repository
@@ -42,7 +45,8 @@ jobs:
4245
VERSION: cpu
4346
CUDATOOLKIT: cpuonly
4447
run: |
45-
# Needed for JPEG library detection as setup.py detects conda presence by running `shutil.which('conda')`
48+
# Needed for JPEG library detection as setup.py detects conda presence
49+
# by running `shutil.which('conda')`
4650
export PATH=~/miniconda3/bin:$PATH
4751
set -ex
4852
${CONDA_RUN} conda install \

0 commit comments

Comments
 (0)