|
9 | 9 | - main
|
10 | 10 |
|
11 | 11 | jobs:
|
12 |
| - test-cuda-2-2-2: |
13 |
| - runs-on: 4-core-ubuntu-gpu-t4 |
| 12 | + test: |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + include: |
| 16 | + - name: CUDA 2.2.2 |
| 17 | + runs-on: 4-core-ubuntu-gpu-t4 |
| 18 | + torch-spec: 'torch==2.2.2' |
| 19 | + - name: CUDA 2.3 RC |
| 20 | + runs-on: 4-core-ubuntu-gpu-t4 |
| 21 | + torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu121' |
| 22 | + - name: CUDA Nightly |
| 23 | + runs-on: 4-core-ubuntu-gpu-t4 |
| 24 | + torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu121' |
| 25 | + - name: CPU |
| 26 | + runs-on: 32-core-ubuntu |
| 27 | + torch-spec: 'torch --index-url https://download.pytorch.org/whl/cpu' |
| 28 | + - name: Nightly CPU |
| 29 | + runs-on: 32-core-ubuntu |
| 30 | + torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cpu' |
| 31 | + runs-on: ${{ matrix.runs-on }} |
14 | 32 | steps:
|
15 | 33 | - uses: actions/checkout@v2
|
16 | 34 |
|
17 | 35 | - name: Set up Python
|
18 | 36 | uses: actions/setup-python@v2
|
19 | 37 | with:
|
20 |
| - python-version: 3.9 |
| 38 | + python-version: '3.9' |
21 | 39 |
|
22 | 40 | - name: Install dependencies
|
23 | 41 | run: |
|
24 | 42 | python -m pip install --upgrade pip
|
25 |
| - pip install torch==2.2.2 |
26 |
| - pip install -r requirements.txt |
27 |
| - pip install -r dev-requirements.txt |
28 |
| -
|
29 |
| - - name: Install package |
30 |
| - run: | |
31 |
| - pip install . |
32 |
| -
|
33 |
| - - name: Run tests |
34 |
| - run: | |
35 |
| - pytest test --verbose -s -x |
36 |
| -
|
37 |
| - test-cuda-2-3-rc: |
38 |
| - runs-on: 4-core-ubuntu-gpu-t4 |
39 |
| - steps: |
40 |
| - - uses: actions/checkout@v2 |
41 |
| - |
42 |
| - - name: Set up Python |
43 |
| - uses: actions/setup-python@v2 |
44 |
| - with: |
45 |
| - python-version: 3.9 |
46 |
| - |
47 |
| - - name: Install dependencies |
48 |
| - run: | |
49 |
| - python -m pip install --upgrade pip |
50 |
| - pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 |
51 |
| - pip install -r requirements.txt |
52 |
| - pip install -r dev-requirements.txt |
53 |
| -
|
54 |
| - test-cuda-nightly: |
55 |
| - runs-on: 4-core-ubuntu-gpu-t4 |
56 |
| - steps: |
57 |
| - - uses: actions/checkout@v2 |
58 |
| - |
59 |
| - - name: Set up Python |
60 |
| - uses: actions/setup-python@v2 |
61 |
| - with: |
62 |
| - python-version: 3.9 |
63 |
| - |
64 |
| - - name: Install dependencies |
65 |
| - run: | |
66 |
| - python -m pip install --upgrade pip |
67 |
| - pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 |
68 |
| - pip install -r requirements.txt |
69 |
| - pip install -r dev-requirements.txt |
70 |
| - |
71 |
| -
|
72 |
| - - name: Install package |
73 |
| - run: | |
74 |
| - pip install . |
75 |
| -
|
76 |
| - - name: Run tests |
77 |
| - run: | |
78 |
| - pytest test --verbose -s -x |
79 |
| -
|
80 |
| - test-cpu: |
81 |
| - runs-on: 32-core-ubuntu |
82 |
| - steps: |
83 |
| - - uses: actions/checkout@v2 |
84 |
| - |
85 |
| - - name: Set up Python |
86 |
| - uses: actions/setup-python@v2 |
87 |
| - with: |
88 |
| - python-version: 3.9 |
89 |
| - |
90 |
| - - name: Install dependencies |
91 |
| - run: | |
92 |
| - python -m pip install --upgrade pip |
93 |
| - pip install torch --index-url https://download.pytorch.org/whl/cpu |
94 |
| - pip install -r requirements.txt |
95 |
| - pip install -r dev-requirements.txt |
96 |
| - |
97 |
| -
|
98 |
| - - name: Install package |
99 |
| - run: | |
100 |
| - pip install . |
101 |
| -
|
102 |
| - - name: Run tests |
103 |
| - run: | |
104 |
| - pytest test --verbose -s -x |
105 |
| -
|
106 |
| - test-nightly-cpu: |
107 |
| - runs-on: 32-core-ubuntu |
108 |
| - steps: |
109 |
| - - uses: actions/checkout@v2 |
110 |
| - |
111 |
| - - name: Set up Python |
112 |
| - uses: actions/setup-python@v2 |
113 |
| - with: |
114 |
| - python-version: 3.9 |
115 |
| - |
116 |
| - - name: Install dependencies |
117 |
| - run: | |
118 |
| - python -m pip install --upgrade pip |
119 |
| - pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu |
| 43 | + pip install ${{ matrix.torch-spec }} |
120 | 44 | pip install -r requirements.txt
|
121 | 45 | pip install -r dev-requirements.txt
|
122 | 46 |
|
|
0 commit comments