Skip to content

Adding proper citation #46

Adding proper citation

Adding proper citation #46

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: R CI
on: [push, pull_request]
env:
cntr: uscbiostats/fmcmc:latest
jobs:
build:
runs-on: Ubuntu-latest
strategy:
matrix:
include:
- name: release
cmd : R
- name: dev
cmd : RD
steps:
- uses: actions/checkout@v2
- name: Container
run: docker pull ${cntr}
- name: SessionInfo
run: docker run --rm -i -v ${PWD}:/mnt -w /mnt ${cntr} ${{ matrix.cmd }} -q -e 'sessionInfo()'
- name: Build
run: |
docker run --rm -i -v ${PWD}:/mnt -w /mnt ${cntr} ${{ matrix.cmd }} \
CMD build --no-build-vignettes --no-manual .
- name: Check
run: |
docker run --rm -i -v ${PWD}:/mnt -w /mnt -e CI=true ${cntr} \
${{ matrix.cmd }} CMD check --no-vignettes --no-manual fmcmc_*.tar.gz
- name: Coverage
env:
MATNAME: ${{ matrix.name }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
docker run --rm -i \
-e MATNAME=$MATNAME \
-e GITHUB_ACTION=$GITHUB_ACTION \
-e GITHUB_REPOSITORY=$GITHUB_REPOSITORY \
-e GITHUB_REF=$GITHUB_REF \
-e GITHUB_HEAD_REF=$GITHUB_HEAD_REF \
-e GITHUB_RUN_ID=$GITHUB_RUN_ID \
-e GITHUB_SHA=$GITHUB_SHA \
-e CODECOV_TOKEN=$CODECOV_TOKEN \
-v ${PWD}:/mnt -w /mnt -e CI=true ${cntr} \
${{ matrix.cmd }} -e \
'(v <- Sys.getenv("MATNAME"));if (v == "release") covr::codecov(quiet = FALSE)'