-
Notifications
You must be signed in to change notification settings - Fork 182
Testing/Build Workflows #266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
peytondmurray
merged 37 commits into
tensorflow:master
from
andrewfulton9:testing-workflow
Jun 12, 2025
Merged
Changes from 34 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
312be3a
Add build workflow via docker (#259)
aktech ce2cab5
add testing workflow
aktech 8c863c8
single python
aktech eacb5ed
trigger
aktech 83bea54
install in build job
aktech bdff4d7
install pytest
aktech a089212
install test dependencies
aktech 5bf8569
add xfail to tests
aktech 3c2982a
add reusable workflows and add pr number in xfail
aktech 0fd401d
fix composite action
aktech 4738d6a
add more xfails
aktech a8a34be
xfail top_k_uniques_stats_generator_test.py
aktech 5fbf0c1
xfails in partitioned_stats_generator_test.py
aktech 29daf9d
more xfails
aktech 156585c
add missing imports
aktech 5edaa20
fix extra decorators
aktech 18e719b
more xfails
aktech d8f588f
Fix TAP and Kokoro tests caused by NumPy v2 migration.
tfx-copybara 021898f
use xfail instead of skip
aktech 5c481ab
remove xfails that are passing
aktech 117e483
dont run xfail + add test deps
aktech 24fb29e
fix build failure by pinning tensorflow_metadata
andrewfulton9 4d0be45
move test requirements
andrewfulton9 7ae0c7d
debugging
andrewfulton9 f8ca8c1
more debugging
andrewfulton9 2a3dc20
remove upload for testing
andrewfulton9 08bfeec
add environment variable to build nightly
andrewfulton9 efc32ed
add extra-index-url
andrewfulton9 eb5d4d8
trying to use nightly install
andrewfulton9 969cad0
revert debugging changes
andrewfulton9 40316aa
update upload artifact version
andrewfulton9 1130c94
revert metadata branch back to master
andrewfulton9 a805011
fix typo
andrewfulton9 6c87444
remove install when built, move to only install on test
andrewfulton9 35d8092
change name of step checking the wheel after moving install to test w…
andrewfulton9 f3313b6
update PR number
andrewfulton9 b02fa6e
just remove PR
andrewfulton9 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Resusable steps to build data-validation | ||
|
||
inputs: | ||
python-version: | ||
description: 'Python version' | ||
required: true | ||
upload-artifact: | ||
description: 'Should upload build artifact or not' | ||
default: false | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Set up Python ${{ inputs.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Build the package for Python ${{ inputs.python-version }} | ||
shell: bash | ||
run: | | ||
version="${{ matrix.python-version }}" | ||
docker compose run -e PYTHON_VERSION=$(echo "$version" | sed 's/\.//') manylinux2010 | ||
|
||
- name: Upload wheel artifact for Python ${{ matrix.python-version }} | ||
if: ${{ inputs.upload-artifact == 'true' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: data-validation-wheel-py${{ matrix.python-version }} | ||
path: dist/*.whl | ||
|
||
- name: Install built wheel | ||
shell: bash | ||
run: | | ||
pip install twine | ||
twine check dist/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build data-validation | ||
id: build-data-validation | ||
uses: ./.github/reusable-build | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
upload-artifact: true | ||
|
||
upload_to_pypi: | ||
name: Upload to PyPI | ||
runs-on: ubuntu-latest | ||
if: (github.event_name == 'release' && startsWith(github.ref, 'refs/tags')) || (github.event_name == 'workflow_dispatch') | ||
needs: [build] | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/tensorflow-data-validation/ | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Retrieve wheels | ||
uses: actions/[email protected] | ||
with: | ||
merge-multiple: true | ||
path: wheels | ||
|
||
- name: List the build artifacts | ||
run: | | ||
ls -lAs wheels/ | ||
|
||
- name: Upload to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1.9 | ||
with: | ||
packages_dir: wheels/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build data-validation | ||
id: build-data-validation | ||
uses: ./.github/reusable-build | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install built wheel | ||
shell: bash | ||
run: | | ||
pip install dist/*.whl['test'] | ||
|
||
- name: Run Test | ||
run: | | ||
rm -rf bazel-* | ||
# run tests | ||
pytest -vv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be installing the wheel in the runner?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just updated the name. Good catch!