File tree Expand file tree Collapse file tree 3 files changed +17
-34
lines changed Expand file tree Collapse file tree 3 files changed +17
-34
lines changed Original file line number Diff line number Diff line change @@ -18,24 +18,20 @@ runs:
18
18
19
19
- name : Build the package for Python ${{ inputs.python-version }}
20
20
shell : bash
21
- env :
22
- TFX_DEPENDENCY_SELECTOR : " NIGHTLY"
23
21
run : |
24
22
version="${{ matrix.python-version }}"
25
23
docker compose run -e PYTHON_VERSION=$(echo "$version" | sed 's/\.//') manylinux2010
26
24
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
33
31
34
32
- name : Install built wheel
35
33
shell : bash
36
- env :
37
- TFX_DEPENDENCY_SELECTOR : " NIGHTLY"
38
34
run : |
39
35
pip install twine
40
36
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:
20
20
- name : Checkout
21
21
uses : actions/checkout@v4
22
22
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
25
26
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
47
29
48
30
upload_to_pypi :
49
31
name : Upload to PyPI
Original file line number Diff line number Diff line change 26
26
with :
27
27
python-version : ${{ matrix.python-version }}
28
28
29
+ - name : Install built wheel
30
+ shell : bash
31
+ run : |
32
+ pip install dist/*.whl['test']
33
+
29
34
- name : Run Test
30
35
run : |
31
36
rm -rf bazel-*
You can’t perform that action at this time.
0 commit comments