-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from metrumresearchgroup/ci-r-compat
ci: fix R <4.2 compatibility and test more R versions
- Loading branch information
Showing
1 changed file
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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' | ||
|