From 25298dd790baebb0e67c0bc6857f2ac691ecb044 Mon Sep 17 00:00:00 2001 From: TroyHernandez Date: Fri, 27 Feb 2026 12:12:33 -0600 Subject: [PATCH] Add GitHub Actions CI with r-ci --- .github/workflows/ci.yaml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 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..4e17b07 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,39 @@ +name: ci + +on: + push: + branches: [main] + pull_request: + branches: [main] + +env: + _R_CHECK_FORCE_SUGGESTS_: "false" + TORCH_HOME: /tmp/torch + +jobs: + ci: + strategy: + fail-fast: false + matrix: + include: + - {os: macos-latest} + - {os: ubuntu-latest} + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v6 + + - name: Setup + uses: eddelbuettel/github-actions/r-ci@master + + - name: Dependencies + run: ./run.sh install_all + + - name: Install torch + run: | + mkdir -p $TORCH_HOME + Rscript -e 'torch::install_torch()' + + - name: Test + run: ./run.sh run_tests