File tree Expand file tree Collapse file tree 5 files changed +10
-17
lines changed Expand file tree Collapse file tree 5 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ name: 'Setup'
2
2
description : ' Common setup for workflows.'
3
3
4
4
inputs :
5
- tf-version :
6
- description : ' Tensorflow version'
7
- required : false
8
- default : ' skip' # Use sentinel value to skip Tensorflow installation
9
5
python-version :
10
6
description : ' Python version'
11
7
required : false
67
63
- if : ${{ steps.python-cache.outputs.cache-hit != 'true' }}
68
64
run : pip install .[${{ inputs.extras }}]
69
65
shell : bash
70
- - if : ${{ inputs.tf-version != 'skip' }}
71
- run : pip install ${{ inputs.tf-version }}
72
- shell : bash
73
66
# Get TFDS library from the repository instead of cache.
74
67
- run : echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV
75
68
shell : bash
Original file line number Diff line number Diff line change 44
44
name : ' Core TFDS tests'
45
45
uses : ./.github/workflows/pytest-template.yml
46
46
with :
47
- tf-version : ${{ matrix.tf-version }}
48
47
os-version : ${{ matrix.os-version }}
48
+ extras : tests-all,${{ matrix.tf-version }}
Original file line number Diff line number Diff line change 4
4
os-version :
5
5
required : true
6
6
type : string
7
- tf-version :
8
- required : true
7
+ extras :
8
+ required : false
9
9
type : string
10
+ default : ' tests-all'
10
11
11
12
env :
12
13
PYTEST_NUM_SHARDS : 4 # Controls tests sharding enabled by `pytest-shard`
47
48
- uses : actions/checkout@v3
48
49
- uses : ./.github/actions/setup
49
50
with :
50
- tf-version : ${{ inputs.tf-version }}
51
51
python-version : ${{ matrix.python-version }}
52
+ extras : ${{ inputs.extras }}
52
53
53
54
# Run tests
54
55
# Ignores:
Original file line number Diff line number Diff line change 49
49
name : ' Core TFDS tests'
50
50
uses : ./.github/workflows/pytest-template.yml
51
51
with :
52
- tf-version : tensorflow
53
52
os-version : ubuntu-22.04
53
+ extras : tests-all,tensorflow
54
54
55
55
huggingface-pytest-job :
56
56
needs : activate-tests
66
66
- uses : actions/checkout@v3
67
67
- uses : ./.github/actions/setup
68
68
with :
69
- tf-version : tensorflow
70
69
python-version : ' 3.10'
71
- extras : huggingface
70
+ extras : huggingface,tensorflow
72
71
73
72
- name : Run HuggingFace tests
74
73
run : |
88
87
- uses : actions/checkout@v3
89
88
- uses : ./.github/actions/setup
90
89
with :
91
- tf-version : tensorflow
90
+ extras : tests-all, tensorflow
92
91
93
92
- name : Run Github API tests
94
93
run : pytest --durations=100 -vv -n auto tensorflow_datasets/core/github_api/github_path_test.py
@@ -107,7 +106,7 @@ jobs:
107
106
- uses : actions/checkout@v3
108
107
- uses : ./.github/actions/setup
109
108
with :
110
- tf-version : tensorflow
109
+ extras : tests-all, tensorflow
111
110
use-cache : false
112
111
113
112
# Test each notebook sequentially.
Original file line number Diff line number Diff line change 217
217
218
218
EXTRAS = {
219
219
'matplotlib' : ['matplotlib' ],
220
- 'tensorflow' : ['tensorflow>=2.1' ],
220
+ 'tensorflow' : ['tensorflow>=2.1,<2.20.0 ' ],
221
221
'tf-nightly' : ['tf-nightly' ],
222
222
'tensorflow-data-validation' : ['tensorflow-data-validation' ],
223
223
'tests-all' : TESTS_ALL_DEPENDENCIES ,
You can’t perform that action at this time.
0 commit comments