Skip to content

Release/1.5.2

Release/1.5.2 #221

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
- 'scratch/**'
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+.[0-9]+'
pull_request:
jobs:
check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-20.04
r: 3.6.3
# Use pinned URL because later pmxTools requires newer R.
rspm: 'https://packagemanager.posit.co/cran/__linux__/focal/2023-02-01'
- os: ubuntu-20.04
r: 4.0.5
# Use pinned URL because PKNCA v0.11.0 (a pmxTools dependency) uses
# the native pipe (added in R 4.1).
rspm: 'https://packagemanager.posit.co/cran/__linux__/focal/2024-06-18'
- os: ubuntu-20.04
r: 4.1.3
- os: ubuntu-20.04
r: 4.2.3
- os: ubuntu-20.04
r: 4.3.1
- os: ubuntu-latest
r: release
env:
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
use-public-rspm: true
env:
RSPM: ${{ matrix.config.rspm }}
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::rcmdcheck
upgrade: ${{ (matrix.config.r == '3.6.3' || matrix.config.r == '4.0.5') && 'FALSE' || 'TRUE' }}
- name: Install pdflatex
shell: bash
run: sudo apt-get install texlive-latex-base texlive-fonts-extra tidy
- name: Check package
shell: bash
run: make ci
release:
if: github.ref_type == 'tag'
name: Upload release
needs: check
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: metrumresearchgroup/actions/mpn-latest@v1
- uses: r-lib/actions/setup-r@v2
with:
r-version: release
use-public-rspm: true
# For pkgpub.
extra-repositories: 'https://mpn.metworx.com/snapshots/stable/${{ env.MPN_LATEST }}'
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgpub
- uses: metrumresearchgroup/actions/publish-r-release@v1