Skip to content

Commit

Permalink
updated the workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
SunnyTseng committed Aug 21, 2024
1 parent e7fd548 commit 93dd6a5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,26 @@ jobs:
with:
python-version: "3.11"

- name: setup r-birdnet venv
shell: Rscript {0}
run: |
# - name: setup r-birdnet venv
# shell: Rscript {0}
# run: |

path_to_python <- reticulate::virtualenv_create(
envname = "r-birdnet",
python = Sys.which("python"), # placed on PATH by the setup-python action
packages = c(
"numpy", "pandas"
)
)
# path_to_python <- reticulate::virtualenv_create(
# envname = "r-birdnet",
# python = Sys.which("python"), # placed on PATH by the setup-python action
# packages = c(
# "numpy", "pandas"
# )
# )

writeLines(sprintf("RETICULATE_PYTHON=%s", path_to_python),
Sys.getenv("GITHUB_ENV"))
# writeLines(sprintf("RETICULATE_PYTHON=%s", path_to_python),
# Sys.getenv("GITHUB_ENV"))


- name: install birdNet
- name: setup r-birdnet venv and install birdnet
shell: Rscript {0}
run: |
library(reticulate)
reticulate::install_python("3.11")
reticulate::virtualenv_create(envname = "r-birdnet",
version = "3.11")
Expand Down

0 comments on commit 93dd6a5

Please sign in to comment.