Skip to content

Commit

Permalink
Merge pull request #144 from ConorMacBride/fix-test-command-quotes
Browse files Browse the repository at this point in the history
Allow quotes in `test_command` input
  • Loading branch information
astrofrog authored Aug 6, 2023
2 parents 84d97e8 + ddca749 commit 92c4786
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,16 @@ jobs:
then
echo "CIBW_TEST_EXTRAS=${{ inputs.test_extras }}" >> $GITHUB_ENV
fi
if [ -n "${{ inputs.test_command }}" ];
set +e
IFS='' read -r -d '' test_command <<"EOF"
${{ inputs.test_command }}
EOF
set -e
if [ -n "$test_command" ];
then
echo "CIBW_TEST_COMMAND=${{ inputs.test_command }}" >> $GITHUB_ENV
echo "CIBW_TEST_COMMAND<<EOF" >> $GITHUB_ENV
echo $(echo $test_command | tr -d '\n') >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
fi
cat $GITHUB_ENV
- uses: actions/setup-python@v4
Expand Down

0 comments on commit 92c4786

Please sign in to comment.