Skip to content

Prepare brickster 0.2.14 for CRAN #408

Prepare brickster 0.2.14 for CRAN

Prepare brickster 0.2.14 for CRAN #408

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
pull_request_review:
types: [submitted]
name: test-coverage.yaml
permissions:
contents: read
jobs:
test-coverage:
if: github.event.review.state == 'approved'
environment: runtime
runs-on: ubuntu-24.04
env:
DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }}
DATABRICKS_TOKEN: ${{ secrets.DATABRICKS_TOKEN }}
DATABRICKS_WSID: ${{ secrets.DATABRICKS_WSID }}
NOT_CRAN: TRUE
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
- uses: r-lib/actions/setup-r@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2.12.1
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2.12.1
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
with:
extra-packages: any::covr, any::xml2
needs: coverage
- name: Test coverage
run: |
cov <- covr::package_coverage(
quiet = FALSE,
clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
print(cov)
covr::to_cobertura(cov)
shell: Rscript {0}
- name: Upload coverage report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: coverage-report
path: cobertura.xml
if-no-files-found: error
- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
- name: Upload test results
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
test-coverage-pr-required:
if: github.event.review.state == 'approved'
needs: test-coverage
name: test-coverage-pr-required
runs-on: ubuntu-24.04
steps:
- name: Confirm required PR coverage passed
run: echo "Coverage PR job passed."