Skip to content

Commit

Permalink
Add synapser update ci (#170)
Browse files Browse the repository at this point in the history
* Respecify OS versions for Mac and Windows

* Add fallback deps install

* Upgrade step version
  • Loading branch information
anngvu authored Feb 22, 2024
1 parent 6531cd9 commit d95f839
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {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'}
Expand All @@ -29,7 +29,7 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -40,9 +40,18 @@ jobs:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
id: install-deps
continue-on-error: true
with:
extra-packages: any::rcmdcheck
needs: check

- name: If source build fails on macOS or Windows, fall back to typical install
if: steps.install-deps.outcome == 'failure'
shell: Rscript {0}
run: |
reticulate::install_miniconda()
install.packages("synapser", repos="http://ran.synapse.org")
- uses: r-lib/actions/check-r-package@v2
with:
Expand Down

0 comments on commit d95f839

Please sign in to comment.