Skip to content

Commit

Permalink
Enable workaround for ubuntu-latest-py3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Dec 20, 2024
1 parent ee3c41a commit 37ca185
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,27 @@ jobs:
pip install --upgrade pint
- name: Install R dependencies and tutorial requirements
# Workaround for https://github.com/actions/runner-images/issues/11137
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }}
run: |
install.packages(c("remotes", "Rcpp"))
remotes::install_cran(
c("IRkernel", "reticulate"),
dependencies = TRUE,
# force = TRUE,
)
reticulate::py_config()
# commented: for debugging
# print(reticulate::py_config())
# reticulate::py_run_string("import os; print(os.environ)")
# IRkernel::installspec()
shell: Rscript {0}

- name: Install R dependencies and tutorial requirements
if: ${{ ! (matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12') }}
run: |
install.packages(c("remotes", "Rcpp"))
remotes::install_cran(
Expand All @@ -121,8 +142,8 @@ jobs:
)
# commented: for debugging
print(reticulate::py_config())
reticulate::py_run_string("import os; print(os.environ)")
# print(reticulate::py_config())
# reticulate::py_run_string("import os; print(os.environ)")
# IRkernel::installspec()
shell: Rscript {0}
Expand Down

0 comments on commit 37ca185

Please sign in to comment.