From f7c9b9c7141495a2bba367ed54d95e2fe784c2ab Mon Sep 17 00:00:00 2001 From: Egill Axfjord Fridgeirsson Date: Tue, 8 Oct 2024 06:54:16 +0000 Subject: [PATCH] Update actions (#129) * update ubuntu, github actions and python on CI --- .github/workflows/R_CDM_check_hades.yaml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/R_CDM_check_hades.yaml b/.github/workflows/R_CDM_check_hades.yaml index fab1ec5..2addc69 100644 --- a/.github/workflows/R_CDM_check_hades.yaml +++ b/.github/workflows/R_CDM_check_hades.yaml @@ -22,7 +22,7 @@ jobs: config: - {os: windows-latest, r: 'release'} - {os: macOS-latest, r: 'release'} - - {os: ubuntu-22.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"} + - {os: ubuntu-24.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/noble/latest"} env: GITHUB_PAT: ${{ secrets.GH_TOKEN }} @@ -45,16 +45,12 @@ jobs: CDM5_SQL_SERVER_USER: ${{ secrets.CDM5_SQL_SERVER_USER }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: r-lib/actions/setup-r@v2 with: r-version: ${{ matrix.config.r }} - - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - uses: r-lib/actions/setup-tinytex@v2 - uses: r-lib/actions/setup-pandoc@v2 @@ -79,7 +75,7 @@ jobs: shell: Rscript {0} run: | python_packages <- - c("polars", "tqdm", "connectorx", "pyarrow", "pynvml", "numpy==1.26.4") + c("polars", "tqdm", "connectorx", "pyarrow", "pynvml", "numpy") library(reticulate) virtualenv_create("r-reticulate", Sys.which("python"), packages=python_packages) @@ -96,19 +92,19 @@ jobs: check-dir: '"check"' - name: Install covr - if: runner.os == 'ubuntu-22.04' + if: runner.os == 'ubuntu-24.04' run: | remotes::install_cran("covr") shell: Rscript {0} - name: Test coverage - if: runner.os == 'ubuntu-22.04' + if: runner.os == 'ubuntu-24.04' run: covr::codecov(token = "${{ secrets.CODECOV_TOKEN }}") shell: Rscript {0} - name: Upload source package if: success() && runner.os == 'macOS' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: package_tarball path: check/*.tar.gz @@ -125,7 +121,7 @@ jobs: steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0