Skip to content

Commit 08c0024

Browse files
committed
Add TF
1 parent 3570997 commit 08c0024

File tree

1 file changed

+47
-5
lines changed

1 file changed

+47
-5
lines changed

.github/workflows/version-specific.yml

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: |
3434
pip install --upgrade pip
3535
pip install torch==1.3
36-
pip install .[dev]
36+
pip install .[sklearn,torch,sentencepiece,testing]
3737
3838
- name: Run all non-slow tests
3939
run: |
@@ -75,7 +75,7 @@ jobs:
7575
run: |
7676
pip install --upgrade pip
7777
pip install torch==1.4
78-
pip install .[dev]
78+
pip install .[sklearn,torch,sentencepiece,testing]
7979
8080
- name: Run all non-slow tests
8181
run: |
@@ -117,7 +117,7 @@ jobs:
117117
run: |
118118
pip install --upgrade pip
119119
pip install torch==1.5
120-
pip install .[dev]
120+
pip install .[sklearn,torch,sentencepiece,testing]
121121
122122
- name: Run all non-slow tests
123123
run: |
@@ -159,7 +159,7 @@ jobs:
159159
run: |
160160
pip install --upgrade pip
161161
pip install torch==1.6
162-
pip install .[dev]
162+
pip install .[sklearn,torch,sentencepiece,testing]
163163
164164
- name: Run all non-slow tests
165165
run: |
@@ -201,7 +201,49 @@ jobs:
201201
run: |
202202
pip install --upgrade pip
203203
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]
205247
206248
- name: Run all non-slow tests
207249
run: |

0 commit comments

Comments
 (0)