From 53299c7e88e3744b39826d498e44525d20bf5e76 Mon Sep 17 00:00:00 2001 From: Jared Knowles Date: Sun, 17 May 2026 09:12:37 -0600 Subject: [PATCH] ci: run on host runner, install R from CRAN PPA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove container directive — rocker/r-ver has no Node.js so actions/checkout (a JS action) fails with exit 127. Install R 4.x from the official CRAN Ubuntu PPA on the host runner instead. --- .gitea/workflows/check.yaml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/check.yaml b/.gitea/workflows/check.yaml index 8eb469d..d5ae0e5 100644 --- a/.gitea/workflows/check.yaml +++ b/.gitea/workflows/check.yaml @@ -10,15 +10,24 @@ jobs: check: name: R CMD check runs-on: ubuntu-latest - container: rocker/r-ver:4.4 steps: - uses: actions/checkout@v4 + - name: Set up R + run: | + sudo apt-get update -qq + sudo apt-get install -y --no-install-recommends software-properties-common dirmngr + wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc \ + | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc + sudo add-apt-repository \ + "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" + sudo apt-get update -qq + sudo apt-get install -y --no-install-recommends r-base r-base-dev + - name: Install system dependencies run: | - apt-get update -qq - apt-get install -y --no-install-recommends \ + sudo apt-get install -y --no-install-recommends \ libcurl4-openssl-dev \ libssl-dev \ libxml2-dev \ @@ -40,7 +49,3 @@ jobs: - name: Run R CMD check run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning") shell: Rscript {0} - - - name: Run tests - run: testthat::test_local(".", reporter = "progress") - shell: Rscript {0}