Skip to content

Commit 65e160d

Browse files
committed
Further improvements
1 parent f4a1bc8 commit 65e160d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build-check-install.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,6 @@ jobs:
534534
files=$(git diff --name-only HEAD FETCH_HEAD -- tests/* R/*.R)
535535
536536
# Base directories
537-
src_dir="R/"
538537
test_dir="tests/testthat/"
539538
540539
# Loop through each modified file and determine which tests to run
@@ -549,7 +548,7 @@ jobs:
549548
td=$TESTING_DEPTH
550549
551550
# Modify in place so that only modified modules are tested.
552-
if [[ -n "$test_files" && ! -n "$test_all" ]];
551+
if [ -n "$test_files" ] && [ -z "$test_all" ];
553552
then {
554553
sed -i 's/skip_if_too_deep(5)/skip_if_too_deep(3)/g' "$test_files"
555554
TESTING_DEPTH=3
@@ -563,9 +562,9 @@ jobs:
563562
} fi
564563
565564
# R file without corresponding test file: reset the testing depth
566-
if [[ -n "$helper_modified" || -n "$test_all" ]];
565+
if [ -n "$helper_modified" ] || [ -n "$test_all" ];
567566
then {
568-
TESTING_DEPTH=td;
567+
TESTING_DEPTH=$td;
569568
} fi
570569
done
571570
shell: bash

0 commit comments

Comments
 (0)