Skip to content

Commit 5d94f61

Browse files
chore: add back collect script (#633)
1 parent b474196 commit 5d94f61

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/actions/run-ats/ats.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if [ ! -s codecov_ats/tests_to_run.txt ]; then
5050
echo "No tests to run, collecting from default tests"
5151
PYTEST_ARGS="${COLLECT_ARGS} ${DEFAULT_TESTS}"
5252
echo "Using args: ${PYTEST_ARGS}"
53-
TESTS_TO_RUN=$(PYTEST_ARGS=${PYTEST_ARGS} ./.circleci/collect.sh)
53+
TESTS_TO_RUN=$(PYTEST_ARGS=${PYTEST_ARGS} ./.github/actions/run-ats/collect.sh)
5454
echo "${TESTS_TO_RUN}" > codecov_ats/tests_to_run.txt
5555
run_count=1
5656
echo "Added ${TESTS_TO_RUN} as fallback. New run count: $run_count"

.github/actions/run-ats/collect.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
TESTS_TO_RUN=$(uv run --frozen pytest --collect-only ${PYTEST_ARGS} -q --disable-warnings --no-summary --no-header)
3+
TESTS_TO_RUN=$(echo "${TESTS_TO_RUN}" | head -n -2)
4+
echo $TESTS_TO_RUN

0 commit comments

Comments
 (0)