Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test ci. #4

Merged
merged 55 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
e6fb7fa
Test ci.
mlondschien Mar 4, 2024
9d725e5
Add qpdf.
mlondschien Mar 4, 2024
d541952
Try message=False
mlondschien Mar 4, 2024
c328c82
Set env variables above.
mlondschien Mar 4, 2024
8c38355
global message=F, warning=F
mlondschien Mar 4, 2024
42770c7
Try conda
mlondschien Mar 4, 2024
5d9dce9
add environment.yml.
mlondschien Mar 4, 2024
a281e45
Add some dependencies.
mlondschien Mar 5, 2024
d1399f8
Add r-knitr to env.yaml.
mlondschien Mar 5, 2024
4e87c70
install knitr manually.
mlondschien Mar 5, 2024
7c5045e
Add r-covr and r-units to env.yaml.
mlondschien Mar 6, 2024
95b6b35
Test R location
manuelburger Mar 26, 2024
4c24a84
execute command in shell
manuelburger Mar 26, 2024
01dfe59
Execute steps in shell
manuelburger Mar 26, 2024
2d4a87b
Add pdflatex to environment
manuelburger Mar 26, 2024
8c9b138
check pdflatex
manuelburger Mar 26, 2024
82cbc06
add texlive env
manuelburger Mar 26, 2024
c278521
move
manuelburger Mar 26, 2024
f033428
don't check for pdflatex
manuelburger Mar 26, 2024
2adecfc
Add texlive to env
manuelburger Mar 26, 2024
18f54ff
Remove texlive action
manuelburger Mar 26, 2024
aefd07c
Update env
manuelburger Mar 26, 2024
32b6b1b
Upd env
manuelburger Mar 26, 2024
85e81d1
Add tinytex install
manuelburger Mar 26, 2024
1d408b1
force tiny tex
manuelburger Mar 26, 2024
c0f887a
Update env and install demos
manuelburger Mar 26, 2024
a0c95f3
Fix typo
manuelburger Mar 26, 2024
4004d1e
No need to make docs
manuelburger Mar 26, 2024
6a77866
Add codetools to env
manuelburger Mar 26, 2024
20a1674
Suppress manual check
manuelburger Mar 26, 2024
8a39f7f
add qpdf
manuelburger Mar 26, 2024
4add3c3
Merge branch 'main' of github.com:ratschlab/ricu into gh-actions
manuelburger Mar 26, 2024
1068981
Add picdb data-env doclines
manuelburger Mar 26, 2024
c9893b9
Don't check doc size
manuelburger Mar 26, 2024
59a1c26
run roxygen
manuelburger Mar 26, 2024
1a09114
Add qpdf
manuelburger Mar 26, 2024
7b0637a
Add env var
manuelburger Mar 26, 2024
f99df74
Add env var to check step
manuelburger Mar 26, 2024
3a3636a
Edit
manuelburger Mar 26, 2024
59a9df4
Change to r-qpdf
manuelburger Mar 26, 2024
21d420f
Add qpdf
manuelburger Mar 26, 2024
df33709
remove force
manuelburger Mar 26, 2024
2d83a62
remove env var
manuelburger Mar 26, 2024
ea49009
grep exclude pdf size warning
manuelburger Mar 26, 2024
4e2066b
don't cache conda env
manuelburger Mar 26, 2024
3a26802
Add caching back
manuelburger Mar 26, 2024
a1dce8d
ch sh
manuelburger Mar 26, 2024
7beb4d7
Revert
manuelburger Mar 26, 2024
db41842
Delete coverage.yaml, pkgdown.yaml
mlondschien Mar 27, 2024
68af794
Add comment to check.yaml, only run this on ubuntu.
mlondschien Mar 27, 2024
7a521db
cleanup environment.yamls.
mlondschien Mar 27, 2024
7f3b7bf
cleanup environment.yamls 2.
mlondschien Mar 27, 2024
490c616
mimic-demo is on conda-forge.
mlondschien Mar 27, 2024
7a99192
yaml -> yml.
mlondschien Mar 27, 2024
db791e6
r-mimic-demo -> r-mimic.demo
mlondschien Mar 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 41 additions & 41 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,55 +6,55 @@ on:
branches:
- main

name: check

jobs:
check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})
R-CMD-check:
name: R CMD check (${{ matrix.os }})
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
os: ['ubuntu-latest']

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-tinytex@v2
- run: tlmgr --version

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

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
- uses: actions/checkout@v4
- name: Set up Conda env
uses: mamba-org/provision-with-micromamba@e2b397b12d0a38069451664382b769c9456e3d6d
with:
extra-packages: |
any::rcmdcheck
eth-mds/mimic-demo
eth-mds/eicu-demo
nbenn/mockthat
- uses: r-lib/actions/check-r-package@v2
cache-env: true
- name: Install TinyTex
shell: bash -l {0}
run: |
Rscript -e 'tinytex::install_tinytex()'
- name: Install demo datasets
shell: bash -l {0}
run: |
Rscript -e 'install.packages("eicu.demo", repos="https://eth-mds.github.io/physionet-demo")'
- name: Run R CMD check
shell: bash -l {0}
run: |
R CMD build . && R CMD check --no-manual --as-cran $(ls -t . | head -n1)
env:
_R_CHECK_CRAN_INCOMING_: false
_R_CHECK_FORCE_SUGGESTS_: false
_R_CHECK_DOC_SIZES_: false
with:
upload-snapshots: true
# R CMD check raises a warning by qpdf that the generated docs PDF is large and
# should be compressed. Currently we ignore this warning via the grep below.
- name: Check for warnings
shell: bash -l {0}
run: |
CHECK_LOG_FILE=ricu.Rcheck/00check.log
CHECK_INSTALL_FILE=ricu.Rcheck/00install.out
if ! [[ -f "$CHECK_LOG_FILE" ]]; then
echo "Log-file not found."
exit 1
fi
if cat $CHECK_LOG_FILE | grep -q "ERROR"; then
cat $CHECK_INSTALL_FILE
cat $CHECK_LOG_FILE
exit 1
fi
if cat $CHECK_LOG_FILE | grep -q "WARNING" | grep -q -v -e "checking sizes of PDF files under ‘inst/doc’ ... WARNING"; then
echo "Found warnings, treated as errors."
cat $CHECK_LOG_FILE
exit 1
fi
36 changes: 0 additions & 36 deletions .github/workflows/coverage.yaml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/pkgdown.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Suggests:
pdftools,
magick,
pillar
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Additional_repositories: https://eth-mds.github.io/physionet-demo
VignetteBuilder: knitr
Config/testthat/edition: 3
7 changes: 7 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,14 @@ S3method(do_callback,fun_itm)
S3method(do_callback,hrd_itm)
S3method(do_callback,itm)
S3method(do_callback,rec_cncpt)
S3method(do_callback,sic_itm)
S3method(do_itm_load,col_itm)
S3method(do_itm_load,default)
S3method(do_itm_load,fun_itm)
S3method(do_itm_load,hrd_itm)
S3method(do_itm_load,itm)
S3method(do_itm_load,nul_itm)
S3method(do_itm_load,sic_itm)
S3method(downgrade_id,default)
S3method(downgrade_id,id_tbl)
S3method(downgrade_id,ts_tbl)
Expand Down Expand Up @@ -126,6 +128,7 @@ S3method(id_map_helper,default)
S3method(id_map_helper,src_env)
S3method(id_orig_helper,default)
S3method(id_orig_helper,miiv_env)
S3method(id_orig_helper,sic_env)
S3method(id_orig_helper,src_env)
S3method(id_vars,col_cfg)
S3method(id_vars,default)
Expand All @@ -139,6 +142,7 @@ S3method(id_win_helper,eicu_env)
S3method(id_win_helper,hirid_env)
S3method(id_win_helper,miiv_env)
S3method(id_win_helper,mimic_env)
S3method(id_win_helper,picdb_env)
S3method(id_win_helper,sic_env)
S3method(import_src,aumc_cfg)
S3method(import_src,character)
Expand All @@ -164,6 +168,7 @@ S3method(init_itm,hrd_itm)
S3method(init_itm,itm)
S3method(init_itm,rgx_itm)
S3method(init_itm,sel_itm)
S3method(init_itm,sic_itm)
S3method(interval,default)
S3method(interval,difftime)
S3method(interval,itm)
Expand All @@ -188,6 +193,7 @@ S3method(load_difftime,eicu_tbl)
S3method(load_difftime,hirid_tbl)
S3method(load_difftime,miiv_tbl)
S3method(load_difftime,mimic_tbl)
S3method(load_difftime,picdb_tbl)
S3method(load_difftime,sic_tbl)
S3method(load_id,character)
S3method(load_id,default)
Expand Down Expand Up @@ -232,6 +238,7 @@ S3method(prepare_query,default)
S3method(prepare_query,hrd_itm)
S3method(prepare_query,rgx_itm)
S3method(prepare_query,sel_itm)
S3method(prepare_query,sic_itm)
S3method(print,cncpt)
S3method(print,id_tbl)
S3method(print,itm)
Expand Down
4 changes: 4 additions & 0 deletions R/data-env.R
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ NULL
#' @rdname data_env
NULL

#' @name picdb
#' @rdname data_env
NULL

data_env <- function() get("data", envir = pkg_env(), mode = "environment")

#' Data source environments
Expand Down
21 changes: 0 additions & 21 deletions environment.yaml

This file was deleted.

14 changes: 11 additions & 3 deletions test_environment.yaml → environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ricu-test
name: ricu
channels:
- nodefaults
- conda-forge
Expand All @@ -18,7 +18,6 @@ dependencies:
- r-cli>=2.1.0
- r-fansi
- r-openssl
- r-units
# optional
- r-rticles
- r-forestmodel
Expand All @@ -29,4 +28,13 @@ dependencies:
- r-cowplot
- r-knitr
- r-pdftools
- r-covr
- r-covr
- r-units
- r-tinytex
- r-testthat
- r-mockthat
- r-pkgload
- r-codetools
- r-qpdf
- qpdf
- r-mimic.demo
Loading
Loading