Skip to content

Commit

Permalink
GHA: install python packages for test coverage as well
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed May 2, 2024
1 parent 1a1dfcf commit 0ffbe9b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ jobs:
with:
use-public-rspm: true

- name: Install Python packages for testing
run: |
dir.create("~/.pip", showWarnings = FALSE, recursive = TRUE)
writeLines(
c("[global]", "break-system-packages = true", "user = true"),
"~/.pip/pip.conf"
)
if (Sys.which("pip3") != "") {
system("pip3 install pyarrow pandas")
} else {
system("pip install pyarrow pandas")
}
shell: Rscript {0}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
Expand Down

0 comments on commit 0ffbe9b

Please sign in to comment.