Skip to content

Commit 5d9741a

Browse files
committed
Fix pipeline
1 parent 83888cb commit 5d9741a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,11 @@ jobs:
292292
extra_repos: <<parameters.extra_repos>>
293293
- run:
294294
command: |
295-
PYTEST_ARGS='--extra-repos=<<parameters.extra_repos>> --token ${CODEGEN_BOT_GHE_TOKEN} -o junit_suite_name="${CIRCLE_JOB}" tests/codemod/test_parse.py'
295+
EXTRA_REPOS_ARG=""
296+
if [ "<<parameters.extra_repos>>" = "true" ]; then
297+
EXTRA_REPOS_ARG="--extra-repos=true"
298+
fi
299+
PYTEST_ARGS="${EXTRA_REPOS_ARG} --token ${CODEGEN_BOT_GHE_TOKEN} -o junit_suite_name=\"${CIRCLE_JOB}\" tests/codemod/test_parse.py"
296300
echo "Running tests with args: $PYTEST_ARGS"
297301
TESTS_TO_RUN=$(PYTEST_ARGS=${PYTEST_ARGS} ./.circleci/collect.sh)
298302
echo $TESTS_TO_RUN | circleci tests run --command "ulimit -s unlimited; xargs uv run --frozen pytest -n auto ${PYTEST_ARGS}"

0 commit comments

Comments
 (0)