Skip to content

Commit 9706af6

Browse files
committed
Clear the workflow detail steps.
1 parent 52d75e1 commit 9706af6

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/pre-building_test.yaml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ jobs:
7070
if: ${{ inputs.build-type == 'setuptools' }}
7171
run: python3 setup.py install --user || exit 1
7272

73-
- name: Show the Python package information
74-
if: ${{ inputs.build-type == 'setuptools' }}
75-
run: pip3 show ${{ inputs.python_package_name }}
76-
7773
- name: Install Python dependencies by Poetry
7874
if: ${{ inputs.build-type == 'poetry' }}
7975
run: |
@@ -85,11 +81,10 @@ jobs:
8581
if: ${{ inputs.build-type == 'poetry' }}
8682
run: |
8783
poetry build
88-
poetry run pip3 install ./dist/*.whl || exit 1
84+
pip3 install ./dist/*.whl || exit 1
8985
90-
- name: Show the Python package information via Poetry
91-
if: ${{ inputs.build-type == 'poetry' }}
92-
run: poetry run pip3 show ${{ inputs.python_package_name }}
86+
- name: Show the Python package information
87+
run: pip3 show ${{ inputs.python_package_name }}
9388

9489
- name: Test to run script with package '${{ inputs.python_package_name }}' in command lines
9590
if: ${{ inputs.test_shell != '' }}
@@ -103,12 +98,8 @@ jobs:
10398
shell: python
10499

105100
- name: Test to run script with package '${{ inputs.python_package_name }}' with Python file
106-
if: ${{ inputs.test_python_script != '' && inputs.build-type == 'setuptools' }}
101+
if: ${{ inputs.test_python_script != '' }}
107102
run: python3 ${{ inputs.test_python_script }}
108103

109-
- name: Test to run script with package '${{ inputs.python_package_name }}' with Python file by Poetry
110-
if: ${{ inputs.test_python_script != '' && inputs.build-type == 'poetry' }}
111-
run: poetry run python3 ${{ inputs.test_python_script }}
112-
113104
# TODO: Build and upload Python package to test PyPI and install it from test PyPI to test
114105
# TODO-note: https://stackoverflow.com/questions/68882603/using-python-poetry-to-publish-to-test-pypi-org

0 commit comments

Comments
 (0)