Skip to content

Commit

Permalink
Update actions (#129)
Browse files Browse the repository at this point in the history
* update ubuntu, github actions and python on CI
  • Loading branch information
egillax authored Oct 8, 2024
1 parent 04cd731 commit f7c9b9c
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 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,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
Expand All @@ -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)
Expand All @@ -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
Expand All @@ -125,7 +121,7 @@ jobs:

steps:

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

Expand Down

0 comments on commit f7c9b9c

Please sign in to comment.