From 04c7011f97995784b3b60a568052191b9d5781a0 Mon Sep 17 00:00:00 2001 From: Anh Nguyet Vu Date: Mon, 4 Mar 2024 15:18:12 -0700 Subject: [PATCH] Update CI with more specific versioning and installation methods --- .github/workflows/R-CMD-check.yaml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 6662d30c..f7c066eb 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -18,11 +18,10 @@ jobs: fail-fast: false matrix: config: - - {os: macOS-13, r: 'release'} - - {os: windows-2022, r: 'release'} - - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} - - {os: ubuntu-latest, r: 'release'} - - {os: ubuntu-latest, r: 'oldrel-1'} + - {os: macOS-13, r: '4.2.1'} + - {os: windows-2022, r: '4.2.1'} + - {os: ubuntu-latest, r: '4.3.3'} + - {os: ubuntu-latest, r: '4.2.1'} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} @@ -46,19 +45,14 @@ jobs: extra-packages: any::rcmdcheck needs: check - - name: Install working version for macOS - if: steps.install-deps.outcome == 'failure' && runner.os == 'macOS' + - name: Install working archive version for macOS and Windows + if: runner.os == 'Windows' || runner.os == 'macOS' shell: Rscript {0} run: | reticulate::install_miniconda() - install.packages("https://github.com/Sage-Bionetworks/synapser/archive/refs/tags/1.3.0.tar.gz", repos=NULL) - - - name: Install working version for Windows - if: steps.install-deps.outcome == 'failure' && runner.os == 'Windows' - shell: Rscript {0} - run: | - reticulate::install_miniconda() - install.packages("https://github.com/Sage-Bionetworks/synapser/archive/refs/tags/1.3.0.zip", repos=NULL) + reticulate::install_python("3.9.12") + reticulate::py_install("synapseclient==3.1.1", pip = TRUE) + install.packages("https://github.com/Sage-Bionetworks/synapser/archive/refs/tags/1.3.0.tar.gz", repos=NULL, type="source") - uses: r-lib/actions/check-r-package@v2 with: