-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- coverage display wasn't set up before, so leaving that alone in the readme for now
- Loading branch information
Showing
6 changed files
with
106 additions
and
126 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: coverage | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'scratch/**' | ||
pull_request: | ||
|
||
jobs: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
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 | ||
extra-repositories: 'https://mpn.metworx.com/snapshots/stable/${{ env.MPN_LATEST }}' | ||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::covr | ||
upgrade: 'TRUE' | ||
- name: Run covr | ||
shell: Rscript {0} | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
run: covr::codecov() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
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: 4.0.5 | ||
- 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: metrumresearchgroup/actions/mpn-latest@v1 | ||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
use-public-rspm: true | ||
extra-repositories: 'https://mpn.metworx.com/snapshots/stable/${{ env.MPN_LATEST }}' | ||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: | | ||
any::pkgdown | ||
any::rcmdcheck | ||
upgrade: 'TRUE' | ||
- uses: r-lib/actions/check-r-package@v2 | ||
- name: Check pkgdown | ||
shell: Rscript {0} | ||
run: pkgdown::check_pkgdown() | ||
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 | ||
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 |
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
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