File tree Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 55 pull_request :
66
77jobs :
8- build_wheels :
9- name : Test build-python-dist action
8+ build_pure :
9+ name : Test action (pure wheel)
1010 runs-on : ubuntu-20.04
1111
1212 steps :
1717 pure_python_wheel : true
1818 test_extras : test
1919 test_command : pytest --pyargs test_package
20+ build_non_pure :
21+ name : Test action (not pure wheel)
22+ runs-on : ubuntu-20.04
23+
24+ steps :
25+ - uses : actions/checkout@v2
26+ - id : build_not_pure
27+ uses : ./
28+ with :
29+ pure_python_wheel : " false"
30+ test_extras : test
31+ test_command : pytest --pyargs test_package
Original file line number Diff line number Diff line change @@ -8,14 +8,17 @@ inputs:
88 description : Any extras_requires modifier that should be used to install the package for testing
99 required : false
1010 default : ' '
11+ type : string
1112 test_command :
1213 description : The command to run to test the package (will be run in a temporary directory)
1314 required : false
1415 default : ' '
16+ type : string
1517 pure_python_wheel :
1618 description : Whether to build a pure Python wheel in addition to the source distribution
1719 required : false
1820 default : false
21+ type : string
1922runs :
2023 using : " composite"
2124 steps :
6164 - name : Build pure Python wheel distribution
6265 shell : bash
6366 run : python -m build --wheel .
64- if : ${{ inputs.pure_python_wheel }}
67+ if : ${{ inputs.pure_python_wheel == 'true' }}
6568
6669 # TODO: check that the resulting wheel is indeed pure Python
6770
7477 python -m pip install --force-reinstall `find dist -name "*.whl"`[${{ inputs.test_extras }}]
7578 cd ${{ runner.temp }}
7679 ${{ inputs.test_command }}
77- if : ${{ inputs.pure_python_wheel && inputs.test_command != '' && inputs.test_extras != '' }}
80+ if : ${{ inputs.pure_python_wheel == 'true' && inputs.test_command != '' && inputs.test_extras != '' }}
7881
7982 - name : Test pure Python wheel distribution
8083 shell : bash
8588 python -m pip install --force-reinstall `find dist -name "*.whl"`
8689 cd ${{ runner.temp }}
8790 ${{ inputs.test_command }}
88- if : ${{ inputs.pure_python_wheel && inputs.test_command != '' && inputs.test_extras == '' }}
91+ if : ${{ inputs.pure_python_wheel == 'true' && inputs.test_command != '' && inputs.test_extras == '' }}
You can’t perform that action at this time.
0 commit comments