Skip to content

Commit

Permalink
Merge pull request #105 from metrumresearchgroup/ci-r-compat
Browse files Browse the repository at this point in the history
ci: fix R <4.2 compatibility and test more R versions
  • Loading branch information
kyleam authored Oct 2, 2024
2 parents f542795 + 5b77969 commit 4c43b30
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,23 @@ jobs:
config:
- os: ubuntu-20.04
r: 3.6.3
# The latest versions of several dependencies require
# newer R versions.
rspm: 'https://packagemanager.posit.co/cran/__linux__/focal/2023-11-15'
- os: ubuntu-20.04
r: 4.0.5
# The latest versions of several dependencies require
# newer R versions.
rspm: 'https://packagemanager.posit.co/cran/__linux__/focal/2024-07-22'
- os: ubuntu-20.04
r: 4.1.3
# The latest versions of several dependencies require
# newer R versions.
rspm: 'https://packagemanager.posit.co/cran/__linux__/focal/2024-07-22'
- os: ubuntu-20.04
r: 4.2.3
- os: ubuntu-20.04
r: 4.3.1
- os: ubuntu-latest
r: release
env:
Expand All @@ -33,18 +46,13 @@ jobs:
with:
r-version: ${{ matrix.config.r }}
use-public-rspm: true
- name: Set evaluate source
# evaluate v0.24 requires R >= 4.0.
if: matrix.config.r == '3.6.3'
shell: bash
run: |
echo 'EVALUATE_PKG=github::r-lib/[email protected]' >>$GITHUB_ENV
env:
RSPM: ${{ matrix.config.rspm }}
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::rcmdcheck
${{ env.EVALUATE_PKG }}
upgrade: 'TRUE'
upgrade: ${{ (matrix.config.r == '3.6.3' || matrix.config.r == '4.0.5' || matrix.config.r == '4.1.3') && 'FALSE' || 'TRUE' }}
- uses: r-lib/actions/check-r-package@v2
release:
if: github.ref_type == 'tag'
Expand Down

0 comments on commit 4c43b30

Please sign in to comment.