Skip to content

Commit 788385f

Browse files
committed
Restore CI in a >= reticulate 1.41 world
1 parent 2a1b7d7 commit 788385f

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/publish-website.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,30 @@ jobs:
3535
any::xml2
3636
any::reticulate
3737

38+
# Setup Python for reticulate
39+
- uses: actions/setup-python@v5
40+
with:
41+
python-version: "3.x"
42+
43+
# Install python dependencies for reticulate
44+
- name: Setup r-reticulate venv
45+
shell: Rscript {0}
46+
run: |
47+
path_to_python <- reticulate::virtualenv_create(
48+
envname = "r-reticulate",
49+
python = Sys.which("python"),
50+
requirements = "docs/requirements.txt"
51+
)
52+
writeLines(sprintf("RETICULATE_PYTHON=%s", path_to_python),
53+
Sys.getenv("GITHUB_ENV"))
54+
55+
3856
# Back to our regularly scheduled Quarto output
3957
- name: "Set up Quarto"
4058
uses: quarto-dev/quarto-actions/setup@v2
4159
with:
4260
version: "pre-release"
4361

44-
# Install python dependencies
45-
- name: "Install python dependencies"
46-
run: |
47-
pip install -r docs/requirements.txt
48-
4962
# Install quarto extensions
5063
- name: "Install quarto extension for quarto-webr and quarto-pyodide"
5164
shell: bash

0 commit comments

Comments
 (0)