Skip to content

Commit

Permalink
squash
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Dec 16, 2024
1 parent 9f2c86d commit 05b9829
Show file tree
Hide file tree
Showing 313 changed files with 12,475 additions and 13,062 deletions.
11 changes: 11 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,14 @@
^vignettes/mapSpain\.Rmd\.orig$
^_pkgdown\.yaml$
^CITATION\.cff$
^tests/testthat/_snaps/esp_getTiles$
^tests/testthat/_snaps/layer_spatraster$
^.*\.pdf$
^CRAN-SUBMISSION$
^pkgdown\.yaml$
^pkgdown\.yml$
^\.imgbotconfig$
^\.lintr$
^CODE_OF_CONDUCT\.md$
^CONTRIBUTING\.md$
^Rplots\.pdf$
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
*.html linguist-detectable=false
*.js linguist-detectable=false
*.js linguist-detectable=false
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.html
R-version
depends.Rds
*.rds
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

# Basic set up for three package managers

version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

Binary file removed .github/r-depends.rds
Binary file not shown.
10 changes: 2 additions & 8 deletions .github/workflows/cff-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@ jobs:
name: Validate CITATION.cff
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RSPM: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

# This is needed for workflows running on
# ubuntu-20.04 or later
- name: Install V8
if: runner.os == 'Linux'
run: |
sudo apt-get install -y libv8-dev
- name: Validate CITATION.cff
uses: dieghernan/cff-validator@main

43 changes: 14 additions & 29 deletions .github/workflows/check-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
pull_request:
branches: [main, master]
schedule:
- cron: '0 14 * * 2,5'
- cron: '0 14 * * 2,5'

name: R-CMD-check

Expand All @@ -24,51 +24,36 @@ jobs:
fail-fast: false
matrix:
config:
- {os: windows-latest, r: 'devel'}
#- {os: windows-latest, r: 'devel'}
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: 'oldrel'}
#- {os: macOS-latest, r: 'devel'}
- {os: macOS-latest, r: 'release'}
- {os: macOS-latest, r: 'oldrel'}
- {os: ubuntu-20.04, r: 'release'}
#- {os: ubuntu-20.04, r: 'devel'}
- {os: ubuntu-20.04, r: 'oldrel'}
- {os: ubuntu-20.04, r: '3.6'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
#- {os: ubuntu-latest, r: 'oldrel'}


env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

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

- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck

- name: Check
env:
_R_CHECK_CRAN_INCOMING_: false
run: |
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
shell: Rscript {0}
cache-version: 5
extra-packages: any::rcmdcheck
needs: check

- name: Show testthat output
if: always()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
- uses: r-lib/actions/check-r-package@v2

- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
24 changes: 24 additions & 0 deletions .github/workflows/cran-status.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CRAN Status Monitor

on:
workflow_dispatch:
schedule:
- cron: '0 10 * * 1,3,5'

jobs:
check:
runs-on: ubuntu-latest
permissions: write-all
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check
uses: dieghernan/cran-status-check@v1
with:
fail-on-error: "true"
create-issue: "false"

72 changes: 57 additions & 15 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,71 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# lintr provides static code analysis for R.
# It checks for adherence to a given style,
# identifying syntax errors and possible semantic issues,
# then reports them to you so you can take action.
# More details at https://lintr.r-lib.org/

name: lintr

on:
push:
branches: [main, master]
branches:
- main
- master
workflow_dispatch:
pull_request:
branches: [main, master]
# The branches below must be a subset of the branches above
branches:
- main
- master
schedule:
- cron: '56 11 * * 5'

name: lint
permissions:
contents: read

jobs:
lint:
lintr:
name: Run lintr scanning
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read # for checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status

steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v1
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
- name: Setup lintr
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
local::.
any::lintr
- name: Run lintr
run: |
# Lintr package
out <- lintr::lint_package()
# Create SARIF report
lintr::sarif_output(out, "lintr-results.sarif")
# Display
out
shell: Rscript {0}
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
extra-packages: lintr
sarif_file: lintr-results.sarif
wait-for-processing: true

- name: Lint
run: lintr::lint_package()
shell: Rscript {0}
21 changes: 21 additions & 0 deletions .github/workflows/pkgcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: pkgcheck

# This will cancel running jobs once a new run is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

on:
# Manually trigger the Action under Actions/pkgcheck
workflow_dispatch:

jobs:
pkgcheck:
runs-on: ubuntu-latest
steps:
- uses: ropensci-review-tools/pkgcheck-action@main
with:
summary-only: false
post-to-issue: true
append-to-issue: true

33 changes: 0 additions & 33 deletions .github/workflows/pkgdown-gh-pages-clean.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/recheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Workflow derived from https://github.com/r-devel/recheck
on:
workflow_dispatch:
inputs:
which:
type: choice
description: Which dependents to check
options:
- strong
- most

name: r-devel reverse dependency check

jobs:
revdep_check:
name: Reverse check ${{ inputs.which }} dependents
uses: r-devel/recheck/.github/workflows/recheck.yml@v1
with:
which: ${{ inputs.which }}

55 changes: 55 additions & 0 deletions .github/workflows/revdepcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
on:
workflow_dispatch:

name: revdepcheck

jobs:
revdepcheck:
runs-on: ${{ matrix.config.os }}

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

strategy:
fail-fast: false
matrix:
config:
#- {os: windows-latest, r: 'release'}
- {os: macOS-latest, r: 'release'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4

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

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
local::.
dieghernan/pkgdev
r-lib/revdepcheck
needs: check

- name: revdepcheck
run: |
revdepcheck::revdep_reset()
revdepcheck::revdep_check(num_workers = 4)
pkgdev::add_global_gitgnore()
usethis::use_build_ignore("revdep")
shell: Rscript {0}

- name: Commit results
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m 'revdepcheck' || echo "No changes to commit"
git push origin || echo "No changes to commit"
Loading

0 comments on commit 05b9829

Please sign in to comment.