Skip to content

Commit

Permalink
Merge pull request #81 from b-cubed-eu/add-checks
Browse files Browse the repository at this point in the history
Add checks
  • Loading branch information
wlangera authored Jun 20, 2024
2 parents 7f0a951 + d92f585 commit 2a610ce
Show file tree
Hide file tree
Showing 65 changed files with 475 additions and 486 deletions.
8 changes: 5 additions & 3 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
^.*\.Rproj$
^CITATION\.cff$
^LICENSE.md$
^LICENSE\.md$
^README\.Rmd$
^\.Rproj\.user$
^\.github$
^\.httr-oauth$
^\.zenodo\.json$
^_pkgdown.yml$
^_pkgdown\.yml$
^checklist.yml$
^codecov\.yml$
^codemeta\.json$
^data-raw$
^docs$
^man-roxygen$
^organisation.yml$
^pkgdown$
^LICENSE\.md$
^_pkgdown\.yml$
^codemeta\.json$
50 changes: 0 additions & 50 deletions .github/workflows/R-CMD-check.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/check_on_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches-ignore:
- main
- master
- ghpages

name: "check package with checklist"

jobs:
check-package:
runs-on: ubuntu-latest
name: "check package"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
steps:
- uses: inbo/actions/check_pkg@checklist-0.3.7
51 changes: 51 additions & 0 deletions .github/workflows/check_on_different_r_os.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

name: R-CMD-check-OS

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-22.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
- {os: ubuntu-22.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
_R_CHECK_SYSTEM_CLOCK_: false
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
extra-repositories: https://inbo.r-universe.dev

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
error-on: '"error"'
19 changes: 19 additions & 0 deletions .github/workflows/check_on_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches:
- main
- master
permissions:
contents: write

name: "check package on main with checklist"

jobs:
check-package:
runs-on: ubuntu-latest
name: "check package"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: inbo/actions/check_pkg@checklist-0.3.7
48 changes: 0 additions & 48 deletions .github/workflows/pkgdown.yaml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Releases

on:
push:
tags:
- v*
workflow_run:
workflows: ["check package on main with checklist"]
types:
- completed

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Get tag
run: |
git fetch --tags --force
TAG=$(git tag --contains $(git rev-parse HEAD))
TAG_BODY=$(git tag --contains $(git rev-parse HEAD) --format='%(contents)')
echo "tag=$TAG" >> $GITHUB_ENV
echo "$TAG_BODY" > body.md
- uses: ncipollo/release-action@v1
with:
name: Release ${{ env.tag }}
tag: ${{ env.tag }}
bodyFile: body.md
50 changes: 0 additions & 50 deletions .github/workflows/test-coverage.yaml

This file was deleted.

16 changes: 8 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
.DS_Store
.RData
.Renviron
.Rhistory
.Rproj.user
.Ruserdata
.httr-oauth
*.dbf
*.doc*
*.gddoc
Expand All @@ -16,8 +9,15 @@
*.shx
*.xls*
*_files
.DS_Store
.RData
.Renviron
.Rhistory
.Rproj.user
.Ruserdata
.httr-oauth
docs
inst/doc
libs
output
renv/library
inst/doc
Loading

0 comments on commit 2a610ce

Please sign in to comment.