From e8d76d56f16a9f1aaf5347bf1c272ba5a7a38e97 Mon Sep 17 00:00:00 2001 From: Fridolin Glatter Date: Fri, 20 Dec 2024 13:09:06 +0100 Subject: [PATCH] Enable workaround for ubuntu-latest-py3.12 --- .github/workflows/pytest.yaml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 3deb4fbc4..c88d000cc 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,13 +122,32 @@ jobs: # force = TRUE, ) + reticulate::py_config() + # 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} + - 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 run: | pytest ixmp \