Skip to content

Commit 33ecbc5

Browse files
committed
fix live test action
1 parent e2f3773 commit 33ecbc5

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/java-live-tests.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ jobs:
1919
name: ${{ matrix.config.os }} (R ${{ matrix.config.r-version }})
2020
runs-on: ${{ matrix.config.os }}
2121

22-
# Strategy to run jobs in parallel for all target platforms
2322
strategy:
24-
fail-fast: false # Important: Ensures all OS tests run even if one fails
23+
fail-fast: false
2524
matrix:
2625
config:
2726
- {os: windows-latest, r-version: 'release'}
@@ -41,18 +40,14 @@ jobs:
4140
- name: Set up Pandoc
4241
uses: r-lib/actions/setup-pandoc@v2
4342

44-
- name: Install all package dependencies from DESCRIPTION
43+
- name: Install package dependencies
4544
uses: r-lib/actions/setup-r-dependencies@v2
46-
with:
47-
# This installs Imports, Depends, LinkingTo, AND Suggests packages
48-
dependencies: "soft"
4945

5046
- name: Run live Java download and install tests
51-
# This is the key step:
52-
# 1. Set the environment variable to enable the test.
53-
# 2. Run ONLY the specific test file using devtools::test_file().
5447
env:
55-
RUN_JAVA_DOWNLOAD_TESTS: "TRUE"
48+
# This environment variable enables the specific test to run
49+
RUN_JAVA_DOWNLOAD_TESTS: "true"
5650
run: |
57-
devtools::test_file('tests/testthat/test-java_full-cycle-live.R')
51+
# Use testthat::test_file() directly to avoid the devtools deprecation warning
52+
testthat::test_file('tests/testthat/test-java_full-cycle-live.R')
5853
shell: Rscript {0}

0 commit comments

Comments
 (0)