Update tests/testthat/test-dbetabinom.R #35
Workflow file for this run
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
--- | ||
name: R Package Validation report π | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
branches: | ||
- main | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- ready_for_review | ||
branches: | ||
- main | ||
- pre-release | ||
workflow_dispatch: | ||
workflow_call: | ||
inputs: | ||
install-system-dependencies: | ||
description: Check for and install system dependencies | ||
required: false | ||
default: false | ||
type: boolean | ||
enable-staged-dependencies-check: | ||
description: Enable staged dependencies YAML check | ||
required: false | ||
default: true | ||
type: boolean | ||
secrets: | ||
GITHUB_TOKEN: | ||
description: | | ||
Github token with read access to repositories, required for staged.dependencies installation | ||
required: false | ||
concurrency: | ||
group: validation-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
validation: | ||
name: Create report π | ||
runs-on: ubuntu-latest | ||
if: > | ||
!contains(github.event.commits[0].message, '[skip validation]') | ||
&& github.event.pull_request.draft == false | ||
container: | ||
image: ghcr.io/insightsengineering/rstudio_4.2.1_bioc_3.15:latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
permissions: | ||
contents: write | ||
packages: write | ||
deployments: write | ||
steps: | ||
- name: Checkout repo π | ||
uses: actions/checkout@v3 | ||
- name: Run Staged dependencies π¦ | ||
uses: insightsengineering/staged-dependencies-action@v1 | ||
with: | ||
run-system-dependencies: ${{ inputs.install-system-dependencies }} | ||
env: | ||
SD_ENABLE_CHECK: ${{ inputs.enable-staged-dependencies-check }} | ||
- name: Build report π | ||
uses: insightsengineering/thevalidatoR@v1 | ||
with: | ||
report_output_prefix: validation_report | ||
- name: Upload report for review β¬ | ||
if: github.ref != 'refs/heads/main' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: validation_report.pdf | ||
path: validation_report.pdf | ||
upload-release-assets: | ||
name: Upload report to release πΌ | ||
needs: validation | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
steps: | ||
- name: Download artifact β¬ | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: validation_report.pdf | ||
- name: Upload report to release πΌ | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file: ./validation_report.pdf | ||
asset_name: validation-report.pdf | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref }} | ||
overwrite: true |