Skip to content

update docs

update docs #256

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
runs-on: ubuntu-latest
name: ${{ matrix.config.image }}:${{ matrix.config.tag }}
container:
image: ${{ matrix.config.image }}:${{ matrix.config.tag }}
strategy:
fail-fast: false
matrix:
config:
- {image: 'fedora', tag: 'latest'}
- {image: 'debian', tag: 'latest'}
- {image: 'ubuntu', tag: 'latest'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Install dependencies (Fedora)
if: ${{ matrix.config.image == 'fedora' }}
run: |
echo "install_weak_deps=False" >> /etc/dnf/dnf.conf
dnf install -y R-core-devel devscripts-checkbashisms python3-dnf \
systemd python3-gobject python3-dbus dbus-daemon
- name: Install dependencies (Debian, Ubuntu)
if: ${{ matrix.config.image != 'fedora' }}
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt update && apt install -y --no-install-recommends \
r-base-core devscripts python3-apt \
python3-gi python3-dbus && apt install -y systemd dbus-daemon
- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: |
export LANG=$(locale -a | grep utf8 | head -n1)
Rscript -e 'install.packages("tinytest", repos="https://cran.r-project.org")'
R CMD build . && mkdir check
R CMD check bspm_*.tar.gz --no-manual -o check
- name: Upload check results
if: ${{ failure() }}
uses: actions/upload-artifact@master
with:
name: r-${{ matrix.config.image }}-${{ matrix.config.tag }}-results
path: check
- name: Test coverage
if: ${{ success() && matrix.config.image == 'fedora' }}
run: |
dnf -y install R-covr
Rscript -e 'covr::codecov()'
r2u:
needs: build
name: r2u tests
runs-on: ubuntu-latest
container:
image: rocker/r2u:jammy
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Install development version
run: R CMD INSTALL .
- name: Run tests
run: ./tests/r2u.sh