Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- 'docs/**'
workflow_dispatch:

env:
USE_BAZEL_VERSION: 7.7.0

jobs:
unit-tests:
if: github.actor != 'copybara-service[bot]'
Expand All @@ -31,7 +34,10 @@ jobs:

- name: Install dependencies
run: |
pip install .[test]
sudo apt update
sudo apt install -y protobuf-compiler
pip install --upgrade pip setuptools wheel numpy pyarrow
pip install --no-build-isolation .[test]

- name: Run unit tests
shell: bash
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
release:
types: [published]

env:
USE_BAZEL_VERSION: 7.7.0

jobs:
build-package:
name: Build sdist
Expand All @@ -20,11 +23,15 @@ jobs:
python-version: '3.10'

- name: Install python dependencies
run: pip install --upgrade pip build twine
run: |
sudo apt update
sudo apt install -y protobuf-compiler
pip install --upgrade pip setuptools wheel numpy pyarrow build twine
pip install --no-build-isolation .

- name: Build sdist and wheel
run: |
python -m build --sdist --wheel -o wheelhouse
python -m build --sdist --wheel --no-isolation -o wheelhouse

- name: List and check sdist
run: |
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ def _make_required_install_packages():
"tensorflow>=2.21,<2.22",
"tensorflow-metadata"
+ select_constraint(
default=">=1.17.1,<1.18.0",
default="@git+https://github.com/tensorflow/metadata@master",
nightly=">=1.18.0.dev",
git_master="@git+https://github.com/tensorflow/metadata@master",
),
"tf_keras>=2",
"tfx-bsl@git+https://github.com/tensorflow/tfx-bsl.git@master",
"tfx-bsl@git+https://github.com/tensorflow/tfx-bsl@master",
]


Expand Down
Loading