From 53736d698f29f8956d3aac58cdd5c68562b11120 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Sun, 26 May 2024 08:28:26 -0500 Subject: [PATCH] Install standard ci.yaml for r2u use Added extra paragraph with 'install_all' to explicitly install suggested dependencies as well as actual dependencies Additional blocks or commands can be added, if needed, as usual via shell or Rscript snippet --- .github/workflows/ci.yaml | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..227127e --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,43 @@ +# 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@v4 + + - name: Setup + uses: eddelbuettel/github-actions/r-ci-setup@master + + - name: Bootstrap + run: ./run.sh bootstrap + + #- name: Dependencies + # run: ./run.sh install_deps + + - name: All Dependencies + run: ./run.sh install_all + + - name: Test + run: ./run.sh run_tests + + #- name: Coverage + # if: ${{ matrix.os == 'ubuntu-latest' }} + # run: ./run.sh coverage