File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -35,17 +35,30 @@ jobs:
35
35
any::xml2
36
36
any::reticulate
37
37
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
+
38
56
# Back to our regularly scheduled Quarto output
39
57
- name : " Set up Quarto"
40
58
uses : quarto-dev/quarto-actions/setup@v2
41
59
with :
42
60
version : " pre-release"
43
61
44
- # Install python dependencies
45
- - name : " Install python dependencies"
46
- run : |
47
- pip install -r docs/requirements.txt
48
-
49
62
# Install quarto extensions
50
63
- name : " Install quarto extension for quarto-webr and quarto-pyodide"
51
64
shell : bash
You can’t perform that action at this time.
0 commit comments