File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,24 +18,20 @@ runs:
1818
1919 - name : Build the package for Python ${{ inputs.python-version }}
2020 shell : bash
21- env :
22- TFX_DEPENDENCY_SELECTOR : " NIGHTLY"
2321 run : |
2422 version="${{ matrix.python-version }}"
2523 docker compose run -e PYTHON_VERSION=$(echo "$version" | sed 's/\.//') manylinux2010
2624
27- # - name: Upload wheel artifact for Python ${{ matrix.python-version }}
28- # if: ${{ inputs.upload-artifact == 'true' }}
29- # uses: actions/upload-artifact@v3
30- # with:
31- # name: data-validation-wheel-py${{ matrix.python-version }}
32- # path: dist/*.whl
25+ - name : Upload wheel artifact for Python ${{ matrix.python-version }}
26+ if : ${{ inputs.upload-artifact == 'true' }}
27+ uses : actions/upload-artifact@v3
28+ with :
29+ name : data-validation-wheel-py${{ matrix.python-version }}
30+ path : dist/*.whl
3331
3432 - name : Install built wheel
3533 shell : bash
36- env :
37- TFX_DEPENDENCY_SELECTOR : " NIGHTLY"
3834 run : |
3935 pip install twine
4036 twine check dist/*
41- TFX_DEPENDENCY_SELECTOR="NIGHTLY" pip install --extra-index-url https://pypi-nightly.tensorflow.org/simple dist/*.whl
37+ pip install dist/*.whl
Original file line number Diff line number Diff line change @@ -20,30 +20,12 @@ jobs:
2020 - name : Checkout
2121 uses : actions/checkout@v4
2222
23- - name : Set up Python ${{ inputs.python-version }}
24- uses : actions/setup-python@v5
23+ - name : Build data-validation
24+ id : build-data-validation
25+ uses : ./.github/reusable-build
2526 with :
26- python-version : ${{ inputs.python-version }}
27-
28- - name : Build the package for Python ${{ inputs.python-version }}
29- shell : bash
30- run : |
31- version="${{ matrix.python-version }}"
32- docker compose run -e PYTHON_VERSION=$(echo "$version" | sed 's/\.//') manylinux2010
33-
34- # - name: Upload wheel artifact for Python ${{ matrix.python-version }}
35- # if: ${{ inputs.upload-artifact == 'true' }}
36- # uses: actions/upload-artifact@v3
37- # with:
38- # name: data-validation-wheel-py${{ matrix.python-version }}
39- # path: dist/*.whl
40-
41- - name : Install built wheel
42- shell : bash
43- run : |
44- pip install twine
45- twine check dist/*
46- pip install dist/*.whl
27+ python-version : ${{ matrix.python-version }}
28+ upload-artifact : true
4729
4830 upload_to_pypi :
4931 name : Upload to PyPI
Original file line number Diff line number Diff line change 2626 with :
2727 python-version : ${{ matrix.python-version }}
2828
29+ - name : Install built wheel
30+ shell : bash
31+ run : |
32+ pip install dist/*.whl['test']
33+
2934 - name : Run Test
3035 run : |
3136 rm -rf bazel-*
You can’t perform that action at this time.
0 commit comments