|
33 | 33 | run: |
|
34 | 34 | pip install --upgrade pip
|
35 | 35 | pip install torch==1.3
|
36 |
| - pip install .[dev] |
| 36 | + pip install .[sklearn,torch,sentencepiece,testing] |
37 | 37 |
|
38 | 38 | - name: Run all non-slow tests
|
39 | 39 | run: |
|
|
75 | 75 | run: |
|
76 | 76 | pip install --upgrade pip
|
77 | 77 | pip install torch==1.4
|
78 |
| - pip install .[dev] |
| 78 | + pip install .[sklearn,torch,sentencepiece,testing] |
79 | 79 |
|
80 | 80 | - name: Run all non-slow tests
|
81 | 81 | run: |
|
@@ -117,7 +117,7 @@ jobs:
|
117 | 117 | run: |
|
118 | 118 | pip install --upgrade pip
|
119 | 119 | pip install torch==1.5
|
120 |
| - pip install .[dev] |
| 120 | + pip install .[sklearn,torch,sentencepiece,testing] |
121 | 121 |
|
122 | 122 | - name: Run all non-slow tests
|
123 | 123 | run: |
|
@@ -159,7 +159,7 @@ jobs:
|
159 | 159 | run: |
|
160 | 160 | pip install --upgrade pip
|
161 | 161 | pip install torch==1.6
|
162 |
| - pip install .[dev] |
| 162 | + pip install .[sklearn,torch,sentencepiece,testing] |
163 | 163 |
|
164 | 164 | - name: Run all non-slow tests
|
165 | 165 | run: |
|
@@ -201,7 +201,49 @@ jobs:
|
201 | 201 | run: |
|
202 | 202 | pip install --upgrade pip
|
203 | 203 | pip install torch==1.7
|
204 |
| - pip install .[dev] |
| 204 | + pip install .[sklearn,torch,sentencepiece,testing] |
| 205 | +
|
| 206 | + - name: Run all non-slow tests |
| 207 | + run: | |
| 208 | + python -m pytest -n 1 --dist=loadfile -s --make-reports=tests_torch-1_7 tests |
| 209 | +
|
| 210 | + - name: Failure short reports |
| 211 | + if: ${{ always() }} |
| 212 | + run: cat reports/tests_torch-1_7_failures_short.txt |
| 213 | + |
| 214 | + - name: Test suite reports artifacts |
| 215 | + if: ${{ always() }} |
| 216 | + uses: actions/upload-artifact@v2 |
| 217 | + with: |
| 218 | + name: run_all_tests_torch-1_7_test_reports |
| 219 | + path: reports |
| 220 | + |
| 221 | + run_tests_tf-2_3: |
| 222 | + runs-on: ubuntu-latest |
| 223 | + steps: |
| 224 | + - name: Checkout repository |
| 225 | + uses: actions/checkout@v1 |
| 226 | + |
| 227 | + - name: Install Python |
| 228 | + uses: actions/setup-python@v1 |
| 229 | + with: |
| 230 | + python-version: 3.6 |
| 231 | + |
| 232 | + - name: Loading cache. |
| 233 | + uses: actions/cache@v2 |
| 234 | + id: cache |
| 235 | + with: |
| 236 | + path: ~/.cache/pip |
| 237 | + key: v1.2-tf-2_3 |
| 238 | + restore-keys: | |
| 239 | + v1.2-tf-2_3-${{ hashFiles('setup.py') }} |
| 240 | + v1.2-tf-2_3 |
| 241 | +
|
| 242 | + - name: Install dependencies |
| 243 | + run: | |
| 244 | + pip install --upgrade pip |
| 245 | + pip install tensorflow==2.3 |
| 246 | + pip install .[sklearn,tensorflow,sentencepiece,testing] |
205 | 247 |
|
206 | 248 | - name: Run all non-slow tests
|
207 | 249 | run: |
|
|
0 commit comments