Skip to content

Commit e0891f4

Browse files
committed
Handle recticulate update by explicitly creating the environment.
1 parent 70046cb commit e0891f4

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/publish-website.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,16 @@ jobs:
3636
any::reticulate
3737

3838
# Install python dependencies
39-
- name: "Install python dependencies"
39+
- name: Setup r-reticulate venv
40+
shell: Rscript {0}
4041
run: |
41-
pip install -r docs/requirements.txt
42+
path_to_python <- reticulate::virtualenv_create(
43+
envname = "r-reticulate",
44+
python = Sys.which("python"),
45+
requirements = "docs/requirements.txt"
46+
)
47+
writeLines(sprintf("RETICULATE_PYTHON=%s", path_to_python),
48+
Sys.getenv("GITHUB_ENV"))
4249
4350
- name: "Set up Quarto"
4451
uses: quarto-dev/quarto-actions/setup@v2

0 commit comments

Comments
 (0)