Skip to content

Commit

Permalink
update both yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Kjell authored and Oscar Kjell committed Nov 25, 2024
1 parent 513f95d commit 4b36533
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/CODECOV-all-OS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,25 @@ jobs:
text::textrpp_initialize(textEmbed_test = TRUE)
shell: Rscript {0}

- name: Identify temporary directory
run: |
tempdir <- tempdir()
cat(sprintf("Temporary directory: %s\n", tempdir))
shell: Rscript {0}

- name: Debug testthat output
if: failure()
run: |
ls -al C:/Users/runneradmin/AppData/Local/Temp/
cat "C:/Users/runneradmin/AppData/Local/Temp/Rtmp*/R_LIBS*/text/text-tests/testthat.Rout.fail" || echo "No testthat output found."
echo "Searching for testthat output..."
TEMP_DIR=$(Rscript -e "cat(tempdir())")
echo "Temporary directory is: $TEMP_DIR"
ls -al "$TEMP_DIR"
TESTTHAT_OUTPUT=$(find "$TEMP_DIR" -type f -name "testthat.Rout.fail" 2>/dev/null || echo "No testthat output found.")
if [[ "$TESTTHAT_OUTPUT" != "No testthat output found." ]]; then
cat "$TESTTHAT_OUTPUT"
else
echo "No testthat output file found."
fi
shell: bash

- name: Generate coverage report (Windows-specific)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,17 @@ jobs:
- name: Install R dependencies
run: |
install.packages("remotes")
install.packages("rcmdcheck")
install.packages("devtools")
shell: Rscript {0}

- name: Install dependencies
- name: Verify Installation
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
required_packages <- c("rcmdcheck", "devtools")
not_installed <- setdiff(required_packages, rownames(installed.packages()))
if (length(not_installed) > 0) {
stop("Some required packages are not installed: ", paste(not_installed, collapse = ", "))
}
shell: Rscript {0}

- name: Run R CMD Check
Expand Down

0 comments on commit 4b36533

Please sign in to comment.