Skip to content

Commit 96407b5

Browse files
committed
Simplify installation of reticulate
- Drop use of "remotes"; call install.packages() directly. - Install libpng-dev for compiling R 'png' package from source on Linux. - Drop workaround for actions/runner-images#11137; appears no longer necessary.
1 parent 1e260eb commit 96407b5

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

.github/workflows/pytest.yaml

+4-20
Original file line numberDiff line numberDiff line change
@@ -94,29 +94,13 @@ jobs:
9494
# [docs] requires [tests] which requires [report,tutorial]
9595
run: uv pip install .[docs]
9696

97-
- name: Install R dependencies and tutorial requirements
98-
# Workaround for https://github.com/actions/runner-images/issues/11137
99-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }}
100-
run: |
101-
install.packages(c("remotes", "Rcpp"))
102-
remotes::install_cran(
103-
c("IRkernel", "reticulate"),
104-
dependencies = TRUE,
105-
# force = TRUE,
106-
)
107-
108-
reticulate::py_config()
109-
shell: Rscript {0}
97+
- name: "Install libpng-dev" # for R 'png', required by reticulate
98+
if: startsWith(matrix.os, 'ubuntu-')
99+
run: sudo apt install libpng-dev
110100

111101
- name: Install R dependencies and tutorial requirements
112-
if: ${{ ! (matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12') }}
113102
run: |
114-
install.packages(c("remotes", "Rcpp"))
115-
remotes::install_cran(
116-
c("IRkernel", "reticulate"),
117-
dependencies = TRUE,
118-
# force = TRUE,
119-
)
103+
install.packages(c("IRkernel", "reticulate"))
120104
121105
# commented: for debugging
122106
# print(reticulate::py_config())

0 commit comments

Comments
 (0)