Skip to content

Commit c5e5424

Browse files
committed
AGAIN
1 parent 1a261c9 commit c5e5424

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/test_action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66

77
jobs:
8-
build_wheels:
8+
build_pure:
99
name: Test build-python-dist action
1010
runs-on: ubuntu-20.04
1111

@@ -17,6 +17,12 @@ jobs:
1717
pure_python_wheel: true
1818
test_extras: test
1919
test_command: pytest --pyargs test_package
20+
build_non_pure:
21+
name: Test build-python-dist action
22+
runs-on: ubuntu-20.04
23+
24+
steps:
25+
- uses: actions/checkout@v2
2026
- id: build_not_pure
2127
uses: ./
2228
with:

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ runs:
6262
- name: Build pure Python wheel distribution
6363
shell: bash
6464
run: python -m build --wheel .
65-
if: ${{ inputs.pure_python_wheel }}
65+
if: ${{ inputs.pure_python_wheel == "true" }}
6666

6767
# TODO: check that the resulting wheel is indeed pure Python
6868

@@ -75,7 +75,7 @@ runs:
7575
python -m pip install --force-reinstall `find dist -name "*.whl"`[${{ inputs.test_extras }}]
7676
cd ${{ runner.temp }}
7777
${{ inputs.test_command }}
78-
if: ${{ inputs.pure_python_wheel && inputs.test_command != '' && inputs.test_extras != '' }}
78+
if: ${{ inputs.pure_python_wheel == "true" && inputs.test_command != '' && inputs.test_extras != '' }}
7979

8080
- name: Test pure Python wheel distribution
8181
shell: bash
@@ -86,4 +86,4 @@ runs:
8686
python -m pip install --force-reinstall `find dist -name "*.whl"`
8787
cd ${{ runner.temp }}
8888
${{ inputs.test_command }}
89-
if: ${{ inputs.pure_python_wheel && inputs.test_command != '' && inputs.test_extras == '' }}
89+
if: ${{ inputs.pure_python_wheel == "true" && inputs.test_command != '' && inputs.test_extras == '' }}

0 commit comments

Comments
 (0)