Skip to content

Commit

Permalink
Update CI with more specific versioning and installation methods
Browse files Browse the repository at this point in the history
  • Loading branch information
anngvu committed Mar 4, 2024
1 parent 69caa4f commit 04c7011
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down

0 comments on commit 04c7011

Please sign in to comment.