Skip to content

Commit 27a6030

Browse files
committed
🧑‍💻Adjust the way to export environment variable for the secret info.
1 parent 7fcb179 commit 27a6030

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/rw_uv_run_test_with_multi_py_versions.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
if [ -n "${{ inputs.with-environment-variables }}" ]; then
121121
export ${{ inputs.with-environment-variables }}
122122
fi
123-
uv run pytest ${{ matrix.test-path }}
123+
E2E_TEST_API_TOKEN=${{ secrets.e2e_test_api_token }} uv run pytest ${{ matrix.test-path }}
124124
continue-on-error: ${{ inputs.keep_run_if_test_fail }}
125125
env:
126126
E2E_TEST_API_TOKEN: ${{ secrets.e2e_test_api_token }}
@@ -133,7 +133,7 @@ jobs:
133133
if [ -n "${{ inputs.with-environment-variables }}" ]; then
134134
export ${{ inputs.with-environment-variables }}
135135
fi
136-
uv run pytest ${{ inputs.test_folder }}
136+
E2E_TEST_API_TOKEN=${{ secrets.e2e_test_api_token }} uv run pytest ${{ inputs.test_folder }}
137137
continue-on-error: ${{ inputs.keep_run_if_test_fail }}
138138
env:
139139
E2E_TEST_API_TOKEN: ${{ secrets.e2e_test_api_token }}

0 commit comments

Comments
 (0)