1515 - r*
1616
1717env :
18- MIN_PY_VERSION : ' 3.7 '
19- MAX_PY_VERSION : ' 3.10 '
18+ MIN_PY_VERSION : ' 3.9 '
19+ MAX_PY_VERSION : ' 3.11 '
2020
2121jobs :
2222 test-with-bazel :
2323 name : Test with bazel
24- runs-on : ubuntu-18 .04
24+ runs-on : ubuntu-20 .04
2525 steps :
2626 - uses : actions/checkout@v2
2727 - uses : actions/setup-python@v2
@@ -40,22 +40,22 @@ jobs:
4040 matrix :
4141 # To switch on windows-2022/latest, please verify the bazel version:
4242 # https://github.com/bazelbuild/bazel/issues/14232#issuecomment-1011247429
43- os : ['macos-12', 'windows-2019', 'ubuntu-18 .04']
44- py-version : ['3.7 ', '3.8 ', '3.9 ', '3.10 ']
45- tf-version : ['2.9.3 ', '2.10.1 ', '2.11 .0']
43+ os : ['macos-12', 'windows-2019', 'ubuntu-20 .04']
44+ py-version : ['3.8 ', '3.9 ', '3.10 ', '3.11 ']
45+ tf-version : ['2.10.1 ', '2.11.0 ', '2.12 .0']
4646 cpu : ['x86']
4747 include :
4848 - os : ' macos-12'
4949 cpu : ' arm64'
50- tf-version : ' 2.11 .0'
50+ tf-version : ' 2.12 .0'
5151 py-version : ' 3.8'
5252 - os : ' macos-12'
5353 cpu : ' arm64'
54- tf-version : ' 2.11 .0'
54+ tf-version : ' 2.12 .0'
5555 py-version : ' 3.9'
5656 - os : ' macos-12'
5757 cpu : ' arm64'
58- tf-version : ' 2.11 .0'
58+ tf-version : ' 2.12 .0'
5959 py-version : ' 3.10'
6060 fail-fast : false
6161 steps :
6666 script : |
6767 const commit_details = await github.git.getCommit({owner: context.repo.owner, repo: context.repo.repo, commit_sha: context.sha});
6868 return commit_details.data.author.date
69- - if : matrix.tf-version != '2.10 .0'
69+ - if : matrix.tf-version != '2.12 .0'
7070 shell : bash
7171 run : echo "SKIP_CUSTOM_OP_TESTS=--skip-custom-ops" >> $GITHUB_ENV
7272 - if : github.event_name == 'push'
@@ -76,11 +76,12 @@ jobs:
7676 - uses : actions/setup-python@v2
7777 with :
7878 python-version : ${{ matrix.py-version }}
79- - if : matrix.os != 'ubuntu-18 .04'
79+ - if : matrix.os != 'ubuntu-20 .04'
8080 name : Setup Bazel
8181 # Ubuntu bazel is run inside of the docker image
8282 run : bash tools/install_deps/install_bazelisk.sh ./
83- - name : Build wheels
83+ - if : matrix.py-version != '3.11' || matrix.tf-version == '2.12.0'
84+ name : Build wheels
8485 env :
8586 OS : ${{ runner.os }}
8687 PY_VERSION : ${{ matrix.py-version }}
@@ -89,32 +90,33 @@ jobs:
8990 CPU : ${{ matrix.cpu }}
9091 shell : bash
9192 run : bash .github/workflows/make_wheel_${OS}_${CPU}.sh
92- - uses : actions/upload-artifact@v1
93+ - if : matrix.py-version != '3.11' || matrix.tf-version == '2.12.0'
94+ uses : actions/upload-artifact@v1
9395 with :
9496 name : ${{ runner.os }}-${{ matrix.py-version }}-tf${{ matrix.tf-version }}-${{ matrix.cpu }}-wheel
9597 path : wheelhouse
9698 upload-wheels :
9799 name : Publish wheels to PyPi
98100 needs : [release-wheel, test-with-bazel]
99- runs-on : ubuntu-18 .04
101+ runs-on : ubuntu-20 .04
100102 strategy :
101103 matrix :
102104 os : ['macOS', 'Windows', 'Linux']
103- py-version : ['3.7 ', '3.8 ', '3.9 ', '3.10 ']
104- tf-version : ['2.11 .0']
105+ py-version : ['3.8 ', '3.9 ', '3.10 ', '3.11 ']
106+ tf-version : ['2.12 .0']
105107 cpu : ['x86']
106108 include :
107109 - os : ' macOS'
108110 cpu : ' arm64'
109- tf-version : ' 2.11 .0'
111+ tf-version : ' 2.12 .0'
110112 py-version : ' 3.8'
111113 - os : ' macOS'
112114 cpu : ' arm64'
113- tf-version : ' 2.11 .0'
115+ tf-version : ' 2.12 .0'
114116 py-version : ' 3.9'
115117 - os : ' macOS'
116118 cpu : ' arm64'
117- tf-version : ' 2.11 .0'
119+ tf-version : ' 2.12 .0'
118120 py-version : ' 3.10'
119121 fail-fast : false
120122 if : (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release'
@@ -134,7 +136,7 @@ jobs:
134136 upload-dev-container :
135137 name : Upload dev container to DockerHub
136138 needs : [release-wheel, test-with-bazel]
137- runs-on : ubuntu-18 .04
139+ runs-on : ubuntu-20 .04
138140 env :
139141 PY_VERSION : ' 3.9'
140142 if : (github.event_name == 'push' && github.ref == 'refs/heads/master')
0 commit comments