16
16
17
17
env :
18
18
MIN_PY_VERSION : ' 3.7'
19
- MAX_PY_VERSION : ' 3.9 '
19
+ MAX_PY_VERSION : ' 3.10 '
20
20
HOROVOD_VERSION : ' 0.23.0'
21
21
22
22
jobs :
@@ -25,12 +25,12 @@ jobs:
25
25
runs-on : ubuntu-20.04
26
26
steps :
27
27
- uses : actions/checkout@v2
28
- - uses : actions/setup-python@v1
28
+ - uses : actions/setup-python@v2
29
29
with :
30
- python-version : ${{ env.MIN_PY_VERSION }}
30
+ python-version : ${{ env.MAX_PY_VERSION }}
31
31
- name : Build wheels
32
32
run : |
33
- pip install --default-timeout=1000 -r tools/install_deps/pytest.txt -r tools/install_deps/tensorflow-cpu .txt -r requirements.txt
33
+ pip install --default-timeout=1000 -r tools/install_deps/pytest.txt -r tools/install_deps/tensorflow.txt -r requirements.txt
34
34
sudo apt install -y redis > /dev/null 2> /dev/null
35
35
bash tools/install_deps/install_bazelisk.sh ./
36
36
python -m pip install tensorflow-io
@@ -39,29 +39,22 @@ jobs:
39
39
bazel test --local_ram_resources=4096 -c opt -k --test_timeout 300,450,1200,3600 --test_output=errors //tensorflow_recommenders_addons/...
40
40
release-wheel :
41
41
name : Build release wheels
42
- runs-on : ${{ matrix.os }}
43
42
strategy :
44
43
matrix :
45
44
# TODO: add back 'windows-latest' when it can be compiled.
46
45
os : ['macos-12', 'ubuntu-20.04']
47
- py-version : ['3.7', '3.8', '3.9']
48
- tf-version : ['2.6 .3', '2.8.3 ']
49
- tf-need-cuda : ['1 ', '0 ']
46
+ py-version : ['3.7', '3.8', '3.9', '3.10' ]
47
+ tf-version : ['2.8 .3', '2.11.0 ']
48
+ tf-need-cuda : ['0 ', '1 ']
50
49
tf-cuda-version : ['11.2']
51
50
tf-cudnn-version : ['8.1']
52
51
cpu : ['x86']
53
- # TODO(poinwater): add macOS CI once GitHub supports macOS 12.0.0 +
54
- # include:
55
- # - os: 'macos-11'
56
- # cpu: 'arm64'
57
- # tf-version: '2.5.0'
58
- # py-version: '3.9'
59
- # tf-need-cuda: '0'
60
52
exclude :
61
53
# excludes cuda on macOS
62
54
- os : ' macos-12'
63
55
tf-need-cuda : ' 1'
64
56
fail-fast : false
57
+ runs-on : ${{ matrix.os }}
65
58
steps :
66
59
- name : clear cache folder
67
60
run : rm -rf /usr/share/dotnet /opt/ghc "/usr/local/share/boost"
@@ -72,11 +65,14 @@ jobs:
72
65
script : |
73
66
const commit_details = await github.git.getCommit({owner: context.repo.owner, repo: context.repo.repo, commit_sha: context.sha});
74
67
return commit_details.data.author.date
68
+ - if : matrix.tf-version != '2.11.0'
69
+ shell : bash
70
+ run : echo "SKIP_CUSTOM_OP_TESTS=--skip-custom-ops" >> $GITHUB_ENV
75
71
- if : github.event_name == 'push'
76
72
shell : bash
77
73
run : echo "NIGHTLY_FLAG=--nightly" >> $GITHUB_ENV
78
74
- uses : actions/checkout@v2
79
- - uses : actions/setup-python@v1
75
+ - uses : actions/setup-python@v2
80
76
with :
81
77
python-version : ${{ matrix.py-version }}
82
78
- name : Setup Bazel
94
90
NIGHTLY_TIME : ${{ steps.author-date.outputs.result }}
95
91
CPU : ${{ matrix.cpu }}
96
92
shell : bash
97
- run : bash .github/workflows/make_wheel_${OS}_${CPU}.sh
93
+ run : |
94
+ if [[ "$TF_VERSION" =~ ^2\.(9|10|11)\.[0-9]$ ]] ; then
95
+ export HOROVOD_VERSION="0.28.1"
96
+ fi
97
+ bash .github/workflows/make_wheel_${OS}_${CPU}.sh
98
98
- uses : haya14busa/action-cond@v1
99
99
id : device
100
100
with :
@@ -113,17 +113,9 @@ jobs:
113
113
matrix :
114
114
# TODO: add back 'Windows' when it can be compiled.
115
115
os : ['macOS', 'Linux']
116
- py-version : ['3.7', '3.8', '3.9']
117
- tf-version : ['2.8.3']
118
- tf-need-cuda : ['1', '0']
116
+ py-version : ['3.7', '3.8', '3.9', '3.10']
117
+ tf-need-cuda : ['0', '1']
119
118
cpu : ['x86']
120
- # TODO(poinwater): add macOS CI once GitHub supports macOS 12.0.0 +
121
- # include:
122
- # - os: 'macOS'
123
- # cpu: 'arm64'
124
- # tf-version: '2.5.0'
125
- # py-version: '3.9'
126
- # tf-need-cuda: '0'
127
119
exclude :
128
120
# excludes cuda on macOS
129
121
- os : ' macOS'
@@ -155,7 +147,7 @@ jobs:
155
147
runs-on : ubuntu-20.04
156
148
strategy :
157
149
matrix :
158
- py-version : ['3.7', '3.8', '3.9']
150
+ py-version : ['3.7', '3.8', '3.9', '3.10' ]
159
151
if : (github.event_name == 'push' && github.ref == 'refs/heads/master')
160
152
steps :
161
153
- uses : actions/checkout@v2
0 commit comments