From f26580b2c55a87b99bac48311b0d690363828059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Ver=C3=ADssimo?= <211358+averissimo@users.noreply.github.com> Date: Fri, 19 Dec 2025 13:34:27 +0100 Subject: [PATCH 1/2] Fallback to testing depth 5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Veríssimo <211358+averissimo@users.noreply.github.com> --- .github/workflows/build-check-install.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index b21e7f88..00682601 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -553,11 +553,12 @@ jobs: commit_msg=$( git log -1 --pretty=%B ) # Set default TESTING_DEPTH - td=$TESTING_DEPTH - if [ -z "$td" ] + WORKFLOW_TESTING_DEPTH=$TESTING_DEPTH + if [ -z "$WORKFLOW_TESTING_DEPTH" ] then { echo "No TESTING_DEPTH default." TESTING_DEPTH=5 + WORKFLOW_TESTING_DEPTH=5 echo "Setting TESTING_DEPTH=${TESTING_DEPTH}" echo "TESTING_DEPTH=${TESTING_DEPTH}" >> "$GITHUB_ENV" } fi @@ -606,12 +607,11 @@ jobs: then { git restore $test_dir echo "Run all tests: Helpers modifications detected." - TESTING_DEPTH="${td}"; + TESTING_DEPTH="${WORKFLOW_TESTING_DEPTH}"; break; } else { sed -i 's/skip_if_too_deep(5)/skip_if_too_deep(3)/g' "$test_files" TESTING_DEPTH=3 - echo "TESTING_DEPTH=${TESTING_DEPTH}" >> "$GITHUB_ENV" echo "Testing with shinytest2 only for $test_files"; } fi done From e89d546298d91d9729481b510f792a7a4785691c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Ver=C3=ADssimo?= <211358+averissimo@users.noreply.github.com> Date: Fri, 19 Dec 2025 13:04:26 +0000 Subject: [PATCH 2/2] chore: make the PR agnostic of the target branch --- .github/workflows/build-check-install.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 00682601..fd48133e 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -537,7 +537,6 @@ jobs: uses: tj-actions/changed-files@a284dc1814e3fd07f2e34267fc8f81227ed29fb8 with: path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} - base_sha: "main" files: | tests/testthat/*.R R/*.R