Skip to content

Commit

Permalink
Add Python 3.11 to CI matrix.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 588491335
  • Loading branch information
RyanMullins authored and LIT team committed Apr 11, 2024
1 parent 664e1b4 commit 56cb72b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
strategy:
matrix:
node-version: [18]
python-version: ["3.10"]
python-version: ["3.10", "3.11"]
defaults:
run:
shell: bash -l {0}
Expand Down
3 changes: 2 additions & 1 deletion lit_nlp/examples/models/tfx_model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def setUp(self):
super(TfxModelTest, self).setUp()
self._path = tempfile.mkdtemp()
input_layer = tf.keras.layers.Input(
shape=(1), dtype=tf.string, name='example')
shape=(1,), dtype=tf.string, name='example'
)
parsed_input = tf.io.parse_example(
tf.reshape(input_layer, [-1]),
{'input_0': tf.io.FixedLenFeature([1], dtype=tf.float32)})
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ keywords = [
[project.optional-dependencies]
# LINT.IfChange
examples = [
"gunicorn==20.1.0",
"tensorflow==2.10.0",
"tensorflow-datasets==4.8.0",
"tensorflow-text==2.10.0",
"gunicorn>=20.1.0",
"sentencepiece==0.1.99",
"tensorflow>=2.10.0,<2.16.0",
"tensorflow-datasets>=4.9.0",
"tensorflow-text>=2.10.0,<2.16.0",
"torch>=2.0.0",
"transformers>=4.27.1",
]
Expand Down
8 changes: 4 additions & 4 deletions requirements_examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
# limitations under the License.
# ==============================================================================
# LINT.IfChange
gunicorn==20.1.0
gunicorn>=20.1.0
sentencepiece==0.1.99
tensorflow==2.10.0
tensorflow-datasets==4.8.0
tensorflow-text==2.10.0
tensorflow>=2.10.0,<2.16.0
tensorflow-datasets>=4.9.0
tensorflow-text>=2.10.0,<2.16.0
torch>=2.0.0
transformers>=4.27.1
# LINT.ThenChange(./pyproject.toml)

0 comments on commit 56cb72b

Please sign in to comment.