Skip to content

Commit 91c9630

Browse files
authored
Fix Workflow by removing variable (#21045)
* fix * Update test-target.yml
1 parent e350bb4 commit 91c9630

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/test-target.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,8 @@ jobs:
275275
# This is not required when no pytest args are provided and it will run all environments
276276
# by default
277277
set +e # Disable immediate exit
278-
PYTEST_ARGS='${{ inputs.pytest-args }}'
279-
280-
if [ "$PYTEST_ARGS" = '-m flaky' ] || [ "$PYTEST_ARGS" = '-m "not flaky"' ]; then
281-
ddev env test --base --new-env --junit ${{ inputs.target }} ${{ inputs.target-env || 'all' }} -- $PYTEST_ARGS -k "not fips"
278+
if [ '${{ inputs.pytest-args }}' = '-m flaky' ] || [ '${{ inputs.pytest-args }}' = '-m "not flaky"' ]; then
279+
ddev env test --base --new-env --junit ${{ inputs.target }} ${{ inputs.target-env || 'all' }} -- ${{ inputs.pytest-args }} -k "not fips"
282280
exit_code=$?
283281
else
284282
ddev env test --base --new-env --junit ${{ inputs.target }} ${{ inputs.target-env || 'all' }} ${{ inputs.pytest-args != '' && format('-- {0} -k "not fips"', inputs.pytest-args) || '-- -k "not fips"' }}
@@ -305,10 +303,8 @@ jobs:
305303
# This is not required when no pytest args are provided and it will run all environments
306304
# by default
307305
set +e # Disable immediate exit
308-
PYTEST_ARGS='${{ inputs.pytest-args }}'
309-
310-
if [ "$PYTEST_ARGS" = '-m flaky' ] || [ "$PYTEST_ARGS" = '-m "not flaky"' ]; then
311-
ddev env test --new-env --junit ${{ inputs.target }} ${{ inputs.target-env || 'all' }} -- $PYTEST_ARGS -k "not fips"
306+
if [ '${{ inputs.pytest-args }}' = '-m flaky' ] || [ '${{ inputs.pytest-args }}' = '-m "not flaky"' ]; then
307+
ddev env test --new-env --junit ${{ inputs.target }} ${{ inputs.target-env || 'all' }} -- ${{ inputs.pytest-args }} -k "not fips"
312308
exit_code=$?
313309
else
314310
ddev env test --new-env --junit ${{ inputs.target }} ${{ inputs.target-env || 'all' }} ${{ inputs.pytest-args != '' && format('-- {0} -k "not fips"', inputs.pytest-args) || '-- -k "not fips"' }}

0 commit comments

Comments
 (0)