Skip to content

Commit

Permalink
update ubuntu, github actions and python on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Oct 7, 2024
1 parent 04cd731 commit 7b6729b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/R_CDM_check_hades.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -45,15 +45,15 @@ 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
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'

- uses: r-lib/actions/setup-tinytex@v2

Expand All @@ -79,7 +79,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)
Expand All @@ -96,19 +96,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
Expand All @@ -125,7 +125,7 @@ jobs:

steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down

0 comments on commit 7b6729b

Please sign in to comment.