Skip to content

Commit

Permalink
Merge branch 'main' into add_devel_image
Browse files Browse the repository at this point in the history
  • Loading branch information
pharmaverse-bot committed Nov 7, 2023
2 parents b2c7ab6 + b7c8e96 commit 0c23a4a
Show file tree
Hide file tree
Showing 15 changed files with 195 additions and 522 deletions.
12 changes: 0 additions & 12 deletions .github/actions/cran-status-extract/Dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions .github/actions/cran-status-extract/action.yml

This file was deleted.

111 changes: 0 additions & 111 deletions .github/actions/cran-status-extract/check-status.R

This file was deleted.

2 changes: 0 additions & 2 deletions .github/actions/cran-status-extract/entrypoint.sh

This file was deleted.

54 changes: 21 additions & 33 deletions .github/workflows/check-templates.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
on:
workflow_dispatch:
inputs:
r-version:
description: 'The version of R to use'
default: '4.1'
required: false
type: choice
options:
- '4.1'
- '4.2'
- '4.3'
push-templates-data:
description: 'Push generated templates data to pharmaverseadam repo'
default: false
required: false
type: boolean
exclude-templates-data:
description: 'List of data generated by templates to exclude (templates script will run, but results will not be push to pharmaverseadam repo) - comma seperated list'
default: ''
required: false
type: string
workflow_call:
inputs:
r-version:
Expand All @@ -17,16 +37,6 @@ on:
default: ''
required: false
type: string
push:
branches:
- main
- devel
- pre-release
pull_request:
branches:
- main
- devel
- pre-release

env:
# branch name for PR
Expand Down Expand Up @@ -58,35 +68,13 @@ concurrency:
cancel-in-progress: true

jobs:
get_r_version:
name: Get R version
runs-on: ubuntu-latest
if: >
!contains(github.event.commits[0].message, '[skip check_templates]')
outputs:
r-version: ${{ steps.normalizer.outputs.R_VERSION }}
steps:
- name: Normalize inputs
id: normalizer
run: |
R_VERSION="${{ inputs.r-version }}"
if [ "$R_VERSION" == "" ]
then {
R_VERSION="4.1"
}
fi
echo "R_VERSION=$R_VERSION" >> $GITHUB_OUTPUT
shell: bash

check_templates:
name: Verify
if: >
!contains(github.event.commits[0].message, '[skip check_templates]')
runs-on: ubuntu-latest
container:
image: "ghcr.io/pharmaverse/admiralci-${{needs.get_r_version.outputs.r-version}}:latest"
needs: get_r_version

image: "ghcr.io/pharmaverse/admiralci-${{ inputs.r-version }}:latest"
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand Down
47 changes: 16 additions & 31 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
on:
workflow_dispatch:
inputs:
r-version:
description: 'The version of R to use'
default: '4.1'
required: false
type: choice
options:
- '4.1'
- '4.2'
- '4.3'
skip-coverage-badges:
description: 'Skip code coverage badge creation'
default: false
required: false
type: boolean
workflow_call:
inputs:
r-version:
Expand All @@ -12,16 +27,6 @@ on:
default: false
required: false
type: boolean
push:
branches:
- main
- devel
- pre-release
pull_request:
branches:
- main
- devel
- pre-release

name: Code Coverage

Expand All @@ -30,37 +35,17 @@ concurrency:
cancel-in-progress: true

jobs:
get_r_version:
name: Get R version
runs-on: ubuntu-latest
if: >
!contains(github.event.commits[0].message, '[skip coverage]')
outputs:
r-version: ${{ steps.normalizer.outputs.R_VERSION }}
steps:
- name: Normalize inputs
id: normalizer
run: |
R_VERSION="${{ inputs.r-version }}"
if [ "$R_VERSION" == "" ]
then {
R_VERSION="4.1"
}
fi
echo "R_VERSION=$R_VERSION" >> $GITHUB_OUTPUT
shell: bash
coverage:
name: Test Coverage
runs-on: ubuntu-latest
container:
image: "ghcr.io/pharmaverse/admiralci-${{needs.get_r_version.outputs.r-version}}:latest"
image: "ghcr.io/pharmaverse/admiralci-${{ inputs.r-version }}:latest"
if: >
!contains(github.event.commits[0].message, '[skip coverage]')
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
outputs:
coverage-percent: ${{ steps.set-coverage-percentage.outputs.coverage-percentage }}
needs: get_r_version
steps:
##################### BEGIN boilerplate steps #####################
- name: Get branch names
Expand Down
Loading

0 comments on commit 0c23a4a

Please sign in to comment.