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