diff --git a/.github/workflows/test_action.yml b/.github/workflows/test_action.yml index d31d2ed..e3a0169 100644 --- a/.github/workflows/test_action.yml +++ b/.github/workflows/test_action.yml @@ -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' diff --git a/action.yml b/action.yml index bed5d03..9ca2adf 100644 --- a/action.yml +++ b/action.yml @@ -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