From d7601436a22a8a6df86e879a5f203e5791b56b8f Mon Sep 17 00:00:00 2001 From: Fridolin Glatter <83776373+glatterf42@users.noreply.github.com> Date: Fri, 20 Dec 2024 15:03:42 +0100 Subject: [PATCH] Apply workaround for Ubuntu Python 3.12-path-R CI failure (#553) --- .github/workflows/pytest.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index b2fc14a3a..cae59ac5d 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -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( @@ -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