Switch ci.yaml to actions/checkout@v6 #112
This file contains hidden or 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
| # Run CI for R using https://eddelbuettel.github.io/r-ci/ | |
| name: ci | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| _R_CHECK_FORCE_SUGGESTS_: "false" | |
| jobs: | |
| ci: | |
| strategy: | |
| matrix: | |
| include: | |
| - {os: macOS-latest} | |
| - {os: ubuntu-latest} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: eddelbuettel/github-actions/r-ci@master | |
| - name: Dependencies | |
| run: ./run.sh install_all | |
| - name: Test | |
| run: ./run.sh run_tests | |
| - name: Verify OpenMP on macOS | |
| if: ${{ matrix.os == 'macOS-latest' }} | |
| run: R CMD INSTALL . && Rscript -e 'RcppEigen::EigenNbThreads()' | |
| - name: Coverage | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| run: ./run.sh coverage |