diff --git a/.github/workflows/check-no-suggests.yaml b/.github/workflows/check-no-suggests.yaml deleted file mode 100644 index cae49bf05..000000000 --- a/.github/workflows/check-no-suggests.yaml +++ /dev/null @@ -1,58 +0,0 @@ -# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples -# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help -# -# NOTE: This workflow only directly installs "hard" dependencies, i.e. Depends, -# Imports, and LinkingTo dependencies. Notably, Suggests dependencies are never -# installed, with the exception of testthat, knitr, and rmarkdown. The cache is -# never used to avoid accidentally restoring a cache containing a suggested -# dependency. -on: - push: - branches: [main, dev] - pull_request: - branches: [main, dev] - -name: R-CMD-check-hard - -permissions: read-all - -jobs: - R-CMD-check: - runs-on: ${{ matrix.config.os }} - - name: ${{ matrix.config.os }} (${{ matrix.config.r }}) - - strategy: - fail-fast: false - matrix: - config: - - {os: ubuntu-latest, r: 'release'} - - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - R_KEEP_PKG_SOURCE: yes - - steps: - - uses: actions/checkout@v4 - - - uses: r-lib/actions/setup-pandoc@v2 - - - 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@v2 - with: - dependencies: '"hard"' - cache: false - extra-packages: | - any::rcmdcheck - any::litedown - needs: check - - - uses: r-lib/actions/check-r-package@v2 - with: - upload-snapshots: true - build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' diff --git a/.github/workflows/check-standard.yaml b/.github/workflows/check-standard.yaml index 863b6975e..065625c9a 100644 --- a/.github/workflows/check-standard.yaml +++ b/.github/workflows/check-standard.yaml @@ -2,9 +2,7 @@ # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help on: push: - branches: [main, dev] pull_request: - branches: [main, dev] name: R-CMD-check @@ -18,13 +16,106 @@ jobs: fail-fast: false matrix: config: - - {os: macOS-latest, r: 'release'} - - {os: windows-latest, r: 'release'} - - {os: windows-latest, r: 'oldrel-2'} - - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} - - {os: ubuntu-latest, r: 'release'} - - {os: ubuntu-latest, r: 'oldrel-1'} - - {os: ubuntu-latest, r: 'oldrel-4'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'devel', http-user-agent: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-1'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} + - {os: windows-latest, r: 'oldrel-2'} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml deleted file mode 100644 index 2c0d1fcc0..000000000 --- a/.github/workflows/pkgdown.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples -# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help -on: - push: - branches: [main] - pull_request: - branches: [main] - release: - types: [published] - workflow_dispatch: - -name: pkgdown - -jobs: - pkgdown: - runs-on: ubuntu-latest - # Only restrict concurrency for non-PR jobs - concurrency: - group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - permissions: - contents: write - 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: any::pkgdown, local::. - needs: website - - - name: Build site - run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) - shell: Rscript {0} - - - name: Deploy to GitHub pages 🚀 - if: github.event_name != 'pull_request' - uses: JamesIves/github-pages-deploy-action@v4 - with: - clean: false - branch: gh-pages - folder: docs diff --git a/.github/workflows/rhub.yaml b/.github/workflows/rhub.yaml deleted file mode 100644 index ff3a268f9..000000000 --- a/.github/workflows/rhub.yaml +++ /dev/null @@ -1,95 +0,0 @@ -# R-hub's generic GitHub Actions workflow file. It's canonical location is at -# https://github.com/r-hub/rhub2/blob/v1/inst/workflow/rhub.yaml -# You can update this file to a newer version using the rhub2 package: -# -# rhub2::rhub_setup() -# -# It is unlikely that you need to modify this file manually. - -name: R-hub -run-name: "${{ github.event.inputs.id }}: ${{ github.event.inputs.name || format('Manually run by {0}', github.triggering_actor) }}" - -on: - workflow_dispatch: - inputs: - config: - description: 'A comma separated list of R-hub platforms to use.' - type: string - default: 'linux,windows,macos' - name: - description: 'Run name. You can leave this empty now.' - type: string - id: - description: 'Unique ID. You can leave this empty now.' - type: string - -jobs: - - setup: - runs-on: ubuntu-latest - outputs: - containers: ${{ steps.rhub-setup.outputs.containers }} - platforms: ${{ steps.rhub-setup.outputs.platforms }} - - steps: - # NO NEED TO CHECKOUT HERE - - uses: r-hub/rhub2/actions/rhub-setup@v1 - with: - config: ${{ github.event.inputs.config }} - id: rhub-setup - - linux-containers: - needs: setup - if: ${{ needs.setup.outputs.containers != '[]' }} - runs-on: ubuntu-latest - name: ${{ matrix.config.label }} - strategy: - fail-fast: false - matrix: - config: ${{ fromJson(needs.setup.outputs.containers) }} - container: - image: ${{ matrix.config.container }} - - steps: - - uses: r-hub/rhub2/actions/rhub-checkout@v1 - - uses: r-hub/rhub2/actions/rhub-platform-info@v1 - with: - token: ${{ secrets.RHUB_TOKEN }} - job-config: ${{ matrix.config.job-config }} - - uses: r-hub/rhub2/actions/rhub-setup-deps@v1 - with: - token: ${{ secrets.RHUB_TOKEN }} - job-config: ${{ matrix.config.job-config }} - - uses: r-hub/rhub2/actions/rhub-run-check@v1 - with: - token: ${{ secrets.RHUB_TOKEN }} - job-config: ${{ matrix.config.job-config }} - - other-platforms: - needs: setup - if: ${{ needs.setup.outputs.platforms != '[]' }} - runs-on: ${{ matrix.config.os }} - name: ${{ matrix.config.label }} - strategy: - fail-fast: false - matrix: - config: ${{ fromJson(needs.setup.outputs.platforms) }} - - steps: - - uses: r-hub/rhub2/actions/rhub-checkout@v1 - - uses: r-hub/rhub2/actions/rhub-setup-r@v1 - with: - job-config: ${{ matrix.config.job-config }} - token: ${{ secrets.RHUB_TOKEN }} - - uses: r-hub/rhub2/actions/rhub-platform-info@v1 - with: - token: ${{ secrets.RHUB_TOKEN }} - job-config: ${{ matrix.config.job-config }} - - uses: r-hub/rhub2/actions/rhub-setup-deps@v1 - with: - job-config: ${{ matrix.config.job-config }} - token: ${{ secrets.RHUB_TOKEN }} - - uses: r-hub/rhub2/actions/rhub-run-check@v1 - with: - job-config: ${{ matrix.config.job-config }} - token: ${{ secrets.RHUB_TOKEN }} diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml deleted file mode 100644 index b40060fa3..000000000 --- a/.github/workflows/test-coverage.yaml +++ /dev/null @@ -1,32 +0,0 @@ -# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples -# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help -on: - push: - branches: [main] - pull_request: - branches: [main] - -name: test-coverage - -jobs: - test-coverage: - runs-on: ubuntu-latest - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - steps: - - uses: actions/checkout@v4 - - - uses: r-lib/actions/setup-r@v2 - with: - use-public-rspm: true - - - uses: r-lib/actions/setup-r-dependencies@v2 - with: - extra-packages: any::covr - needs: coverage - - - name: Test coverage - run: covr::codecov(quiet = FALSE) - shell: Rscript {0}