-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
822efd0
commit e4c9b98
Showing
1 changed file
with
62 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Run CI for R using https://eddelbuettel.github.io/r-ci/ | ||
|
||
name: ci | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
env: | ||
_R_CHECK_FORCE_SUGGESTS_: "false" | ||
_R_CHECK_TESTS_NLINES_: 0 | ||
R_NOT_CRAN: true | ||
R_GH: true | ||
GITHUB_PAT: ${{ secrets.GITHUB_PAT }} | ||
|
||
jobs: | ||
ci: | ||
strategy: | ||
matrix: | ||
include: | ||
# - {os: macOS-latest, r: 'release'} | ||
# - {os: windows-latest, r: 'release'} | ||
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release', depends_only: TRUE} | ||
- {os: ubuntu-latest, r: 'release'} | ||
- {os: ubuntu-latest, r: 'oldrel'} | ||
- {os: ubuntu-latest, r: '4.1.3'} | ||
- {os: ubuntu-latest, r: '4.0.5'} | ||
- {os: ubuntu-latest, r: '3.6.0'} | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
_R_CHECK_FORCE_SUGGESTS_: "false" | ||
_R_CHECK_TESTS_NLINES_: 0 | ||
R_NOT_CRAN: true | ||
R_GH: true | ||
GITHUB_PAT: ${{ secrets.GITHUB_PAT }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Get Script | ||
run: curl -OLs https://eddelbuettel.github.io/r-ci/run.sh && chmod 0755 run.sh | ||
|
||
- name: Bootstrap | ||
run: ./run.sh bootstrap | ||
|
||
- name: png (for svglite) | ||
run: sudo apt update -qq && sudo apt install --yes --no-install-recommends libpng-dev | ||
|
||
- name: svglite from source | ||
run: Rscript -e "bspm::disable();install.packages('svglite', from = 'source');bspm::enable()" | ||
|
||
- name: Dependencies | ||
run: ./run.sh install_all | ||
|
||
- name: Test | ||
run: ./run.sh run_tests | ||
|
||
# - name: Coverage | ||
# if: ${{ matrix.os == 'ubuntu-latest' }} | ||
# run: ./run.sh coverage |