From 8a12e96bb3876102c0a88ef8a8828d59c26435de Mon Sep 17 00:00:00 2001 From: Eric Marcon Date: Mon, 11 Dec 2023 16:11:06 +0100 Subject: [PATCH] added a CI test for PR --- .github/workflows/pr.yml | 32 ++++++++++++++++++++++++++++++++ DESCRIPTION | 2 +- NEWS.md | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..213c22c --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,32 @@ +on: + pull_request: + branches: + - master + +name: R-CMD-check + +jobs: + R-CMD-check: + runs-on: macOS-latest + env: + GITHUB_PAT: ${{ secrets.GH_PAT }} + steps: + - uses: actions/checkout@master + - uses: r-lib/actions/setup-r@v2 + - name: Install pandoc + uses: r-lib/actions/setup-pandoc@v2 + - name: Install dependencies + run: | + options(pkgType = "binary") + options(install.packages.check.source = "no") + install.packages(c("remotes", "rcmdcheck", "covr", "pkgdown")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + - name: Check + run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning", check_dir = "check") + shell: Rscript {0} + - name: Install package + run: R CMD INSTALL . + - name: Pkgdown + # Build the package site locally + run: Rscript -e 'pkgdown::build_site()' diff --git a/DESCRIPTION b/DESCRIPTION index 6e4c486..5ecd6d1 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: dbmss Type: Package Title: Distance-Based Measures of Spatial Structures -Version: 2.8-2.9104 +Version: 2.8-2.9105 Authors@R: c( person("Eric", "Marcon", email="eric.marcon@agroparistech.fr", role=c("aut", "cre"), comment = c(ORCID = "0000-0002-5249-321X")), person("Gabriel", "Lang", email="gabriel.lang@agroparistech.fr", role="aut", comment = c(ORCID = "0000-0002-4325-6044")), diff --git a/NEWS.md b/NEWS.md index d5f935f..0dd32ed 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# dbmss 2.8-2.9104 +# dbmss 2.8-2.9105 ## Improvements