Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/test_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,16 @@ jobs:
test_groups: test
test_extras: recommended
test_command: pytest --pyargs test_package

build_no_groups:
name: Test action (default, no groups)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- id: build
uses: ./
with:
pure_python_wheel: true
test_extras: recommended
test_command: python -c 'import test_package'
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ runs:
shell: bash
run: |
echo "group_flags=$( python -c "print(' '.join(f'--group {g.strip()}' for g in '${{ inputs.test_groups }}'.split(',')))" ) " >> "$GITHUB_ENV"
if: ${{ inputs.test_groups != '' }}

- name: Test source distribution
shell: bash
Expand Down