Skip to content

Commit 9a4b2bd

Browse files
authored
Merge pull request #23 from neutrinoceros/bug/pep735-support
BUG: fix invalid parsing for default `test_groups=''`
2 parents 8c82c2f + d5522d9 commit 9a4b2bd

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/test_action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,16 @@ jobs:
3131
test_groups: test
3232
test_extras: recommended
3333
test_command: pytest --pyargs test_package
34+
35+
build_no_groups:
36+
name: Test action (default, no groups)
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- uses: actions/checkout@v4
41+
- id: build
42+
uses: ./
43+
with:
44+
pure_python_wheel: true
45+
test_extras: recommended
46+
test_command: python -c 'import test_package'

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ runs:
6060
shell: bash
6161
run: |
6262
echo "group_flags=$( python -c "print(' '.join(f'--group {g.strip()}' for g in '${{ inputs.test_groups }}'.split(',')))" ) " >> "$GITHUB_ENV"
63+
if: ${{ inputs.test_groups != '' }}
6364

6465
- name: Test source distribution
6566
shell: bash

0 commit comments

Comments
 (0)