-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from pharmaverse/Enhancement-implement-CI-wor…
…kflows-based-on-admiralci Enhancement: implemented relevant CI workflows from admiralci
- Loading branch information
Showing
17 changed files
with
190 additions
and
37 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,80 @@ | ||
# Source: https://github.com/pharmaverse/admiralci | ||
# Stripped down version of admiralci checks. Good for | ||
# the developement process. When package is ready to | ||
# be published, revisit and add release-related | ||
# workflows. | ||
name: admiral CI/CD Workflows | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: admiral-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
R_VERSION: "release" | ||
|
||
jobs: | ||
get_r_version: | ||
name: Get R version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
r-version: ${{ steps.get_r_version.outputs.R_VERSION }} | ||
steps: | ||
- name: Get R Version for Downstream Container Jobs | ||
id: get_r_version | ||
run: echo "R_VERSION=$R_VERSION" >> $GITHUB_OUTPUT | ||
shell: bash | ||
spellcheck: | ||
name: Spelling | ||
uses: pharmaverse/admiralci/.github/workflows/spellcheck.yml@main | ||
if: github.event_name == 'pull_request' | ||
needs: get_r_version | ||
with: | ||
r-version: "${{ needs.get_r_version.outputs.r-version }}" | ||
linter: | ||
name: Lint | ||
uses: pharmaverse/admiralci/.github/workflows/lintr.yml@main | ||
needs: get_r_version | ||
if: github.event_name == 'pull_request' | ||
with: | ||
r-version: "${{ needs.get_r_version.outputs.r-version }}" | ||
man-pages: | ||
name: Man Pages | ||
uses: pharmaverse/admiralci/.github/workflows/man-pages.yml@main | ||
if: github.event_name == 'pull_request' | ||
needs: get_r_version | ||
with: | ||
r-version: "${{ needs.get_r_version.outputs.r-version }}" | ||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
needs: get_r_version | ||
container: | ||
image: "ghcr.io/pharmaverse/admiralci-${{ needs.get_r_version.outputs.r-version }}:latest" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
Rscript -e 'remotes::install_deps(dependencies = TRUE)' | ||
- name: Run tests | ||
shell: Rscript {0} | ||
run: | | ||
devtools::load_all(".") | ||
devtools::test() | ||
check: | ||
name: Check | ||
uses: pharmaverse/admiralci/.github/workflows/r-cmd-check.yml@main | ||
if: github.event_name == 'pull_request' | ||
with: | ||
error-on: error |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,4 @@ Suggests: | |
lintr (>= 3.1.2), | ||
testthat (>= 3.0.0) | ||
Config/testthat/edition: 3 | ||
Language: en-US |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#' @importFrom logger log_trace log_debug log_info log_warn log_error log_fatal | ||
NULL | ||
NULL |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
ADNCA | ||
ADPP | ||
AFRLT | ||
AUClast | ||
AVAL | ||
BLQ | ||
Bärtschi | ||
CDISC | ||
DOSEA | ||
DOSNO | ||
EVID | ||
IQROUTE | ||
NCA | ||
PCSPEC | ||
PKNCA | ||
Pharmacokinetic | ||
Pre | ||
RO | ||
RStudio | ||
STUDYID | ||
USUBJID | ||
USUBJIDs | ||
analyte | ||
analytes | ||
anonymized | ||
anonymizes | ||
cmax | ||
csv | ||
ggplot | ||
nca | ||
pharmacokinetic | ||
pknca | ||
plotly | ||
pptest | ||
pre | ||
sas | ||
summarization | ||
timepoint | ||
visualizable | ||
xpt |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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