Skip to content

Commit

Permalink
Apply workaround for Ubuntu Python 3.12-path-R CI failure (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 authored Dec 20, 2024
1 parent 02dadfa commit d760143
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ 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(
Expand All @@ -120,11 +122,24 @@ jobs:
# force = TRUE,
)
IRkernel::installspec()
reticulate::py_config()
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(
c("IRkernel", "reticulate"),
dependencies = TRUE,
# force = TRUE,
)
# commented: for debugging
# print(reticulate::py_config())
# reticulate::py_run_string("import os; print(os.environ)")
IRkernel::installspec()
shell: Rscript {0}

- name: Run test suite using pytest
Expand Down

0 comments on commit d760143

Please sign in to comment.