generated from pharmaverse/admiraltemplate
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove renv and use cran latest (#176)
* add vignettes * add doc * use cran latest * temp comments * use tmp branch * fix * fix * fix * add supp packages * fix typo * update docker images * add needs * fix im name * update workflow to use latest im * fix * delete rprofile * fix deps name * add old release * add old release check * fix typo * fix release artifacts * update install deps script & lintr * fix link * fix link * rename latest image into release * Update push-docker-image.yml * install suggest deps * add step to install deps - r cmd check * add other r cmd check job * fix indent * fix * try p3m cran repo for devel * try another cran repo devel * update boilerplate steps with new deps, upload deps artifacts * add r_version to artifact * fix artifact name * trigger checks only on dispatch, generate renv.lock on artifacts * fix * fix * fix * fix * fix artifacts multiple paths * fix path * fix * retry * fix renv artifact names --------- Co-authored-by: pharmaverse-bot <[email protected]> Co-authored-by: cicdguy <[email protected]>
- Loading branch information
1 parent
f7617ba
commit a25b02b
Showing
52 changed files
with
1,345 additions
and
8,854 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Check R tags | ||
|
||
on: | ||
workflow_dispatch: # give possibility to run it manually | ||
schedule: | ||
- cron: '0 0 * * Sun' # Run every sunday at midnight UTC | ||
|
||
permissions: write-all | ||
env: | ||
REGISTRY: ghcr.io | ||
R_REPOS: "https://cran.r-project.org" | ||
OLD_RELEASE: "4.3" | ||
|
||
concurrency: | ||
group: check-r-tags-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check-r-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: List rocker/rstudio tags | ||
run: | | ||
versions=$(curl -s "https://registry.hub.docker.com/v2/repositories/rocker/rstudio/tags/" | grep -o '"name": *"[^"]*' | grep -o '[^"]*$') | ||
r_version=$(echo "$versions" | grep -oE '^[0-9]+\.[0-9]+$' | sort -r | head -n 1) | ||
if [ $r_version != "${{ env.OLD_RELEASE }}" ] | ||
then | ||
echo "NEW RELEASE DETECTED - please update OLD_RELEASE env variable to $r_version in the workflows (this one and push-docker-image)" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.