From 3289622ef1f6cc79852b2d2883dc678c29689669 Mon Sep 17 00:00:00 2001 From: "Adam H. Sparks" Date: Thu, 28 Mar 2024 13:12:53 +0800 Subject: [PATCH] Delete tic workflows --- .github/workflows/tic.yml | 100 ------------------------------- .github/workflows/update-tic.yml | 52 ---------------- tic.R | 2 - 3 files changed, 154 deletions(-) delete mode 100644 .github/workflows/tic.yml delete mode 100644 .github/workflows/update-tic.yml delete mode 100644 tic.R diff --git a/.github/workflows/tic.yml b/.github/workflows/tic.yml deleted file mode 100644 index 9590bd36..00000000 --- a/.github/workflows/tic.yml +++ /dev/null @@ -1,100 +0,0 @@ -## tic GitHub Actions template: linux-macos-windows-deploy -## revision date: 2023-05-22 -on: - workflow_dispatch: - push: - branches: - - main - - master - - cran-* - pull_request: - branches: - - main - - master - # for now, CRON jobs only run on the default branch of the repo (i.e. usually on master) - schedule: - # * is a special character in YAML so you have to quote this string - - cron: "0 4 * * *" - -name: tic - -jobs: - all: - runs-on: ${{ matrix.config.os }} - - name: ${{ matrix.config.os }} (${{ matrix.config.r }}) - - strategy: - fail-fast: false - matrix: - config: - # use a different tic template type if you do not want to build on all listed platforms - - { os: windows-latest, r: "release" } - - { os: macOS-latest, r: "release", pkgdown: "false", latex: "true" } - - { os: ubuntu-latest, r: "devel" } - - { os: ubuntu-latest, r: "release" } - - env: - # make sure to run `tic::use_ghactions_deploy()` to set up deployment - TIC_DEPLOY_KEY: ${{ secrets.TIC_DEPLOY_KEY }} - # prevent rgl issues because no X11 display is available - RGL_USE_NULL: true - # use GITHUB_TOKEN from GitHub to workaround rate limits in {remotes} - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - - steps: - - uses: actions/checkout@v3 - - - uses: r-lib/actions/setup-r@v2 - with: - r-version: ${{ matrix.config.r }} - Ncpus: 4 - - - uses: r-lib/actions/setup-tinytex@v2 - if: matrix.config.latex == 'true' - - - uses: r-lib/actions/setup-pandoc@v2 - - # set date/week for use in cache creation - # https://github.community/t5/GitHub-Actions/How-to-set-and-access-a-Workflow-variable/m-p/42970 - # - cache R packages daily - - name: "[Cache] Prepare daily timestamp for cache" - if: runner.os != 'Windows' - id: date - run: echo "date=$(date '+%d-%m')" >> $GITHUB_OUTPUT - - - name: "[Cache] Cache R packages" - if: runner.os != 'Windows' - uses: pat-s/always-upload-cache@v3 - with: - path: ${{ env.R_LIBS_USER }} - key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{steps.date.outputs.date}} - restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-${{steps.date.outputs.date}} - - - name: "[Stage] Install pak" - run: Rscript -e "install.packages('pak', repos = 'https://r-lib.github.io/p/pak/stable')" - - - name: "[Stage] Install" - run: Rscript -e "if (grepl('Ubuntu', Sys.info()[['version']]) && !grepl('Under development', R.version[['status']])) {options(repos = c(CRAN = sprintf('https://packagemanager.rstudio.com/all/__linux__/%s/latest', system('lsb_release -cs', intern = TRUE))))}else{options(repos = c(CRAN = 'cloud.r-project.org'))}; pak::pkg_install('ropensci/tic')" -e "print(tic::dsl_load())" -e "tic::prepare_all_stages()" -e "tic::before_install()" -e "tic::install()" - - - name: "[Stage] Script" - run: Rscript -e 'tic::script()' - - - name: "[Stage] After Success" - run: Rscript -e "tic::after_success()" - - - name: "[Stage] Upload R CMD check artifacts" - if: failure() - uses: actions/upload-artifact@v3 - with: - name: ${{ runner.os }}-r${{ matrix.config.r }}-results - path: check - - name: "[Stage] Before Deploy" - run: | - Rscript -e "tic::before_deploy()" - - - name: "[Stage] Deploy" - run: Rscript -e "tic::deploy()" - - - name: "[Stage] After Deploy" - run: Rscript -e "tic::after_deploy()" diff --git a/.github/workflows/update-tic.yml b/.github/workflows/update-tic.yml deleted file mode 100644 index 7a7e4da6..00000000 --- a/.github/workflows/update-tic.yml +++ /dev/null @@ -1,52 +0,0 @@ -on: - workflow_dispatch: - schedule: - # * is a special character in YAML so you have to quote this string - - cron: "0 4 * * 0" # every week - -name: Update tic - -jobs: - update-tic: - runs-on: ${{ matrix.config.os }} - - name: ${{ matrix.config.os }} (${{ matrix.config.r }}) - - strategy: - fail-fast: false - matrix: - config: - - { os: ubuntu-latest, r: "release" } - - env: - # use GITHUB_TOKEN from GitHub to workaround rate limits in {remotes} - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - - steps: - - uses: actions/checkout@v3 - with: - persist-credentials: false - - - uses: r-lib/actions/setup-r@v2 - with: - r-version: ${{ matrix.config.r }} - Ncpus: 4 - - - name: "[Stage] Dependencies" - run: | - Rscript -e "install.packages('pak', repos = 'https://r-lib.github.io/p/pak/stable')" - Rscript -e "if (grepl('Ubuntu', Sys.info()[['version']])) {options(repos = c(CRAN = sprintf('https://packagemanager.rstudio.com/all/__linux__/%s/latest', system('lsb_release -cs', intern = TRUE))))}; pak::pkg_install('ropensci/tic', dependencies = TRUE)" - - - name: "[Stage] Update YAMLs" - run: | - Rscript -e "tic::update_yml()" - - - name: "[Stage] Create Pull Request" - uses: peter-evans/create-pull-request@v4 - with: - author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - token: ${{ secrets.TIC_UPDATE }} - title: "Update tic templates [ci-skip]" - commit-message: "update tic templates" - body: "{tic} templates can be updated :rocket: :robot:" - branch: update-tic diff --git a/tic.R b/tic.R deleted file mode 100644 index 4a6080f0..00000000 --- a/tic.R +++ /dev/null @@ -1,2 +0,0 @@ -# installs dependencies, runs R CMD check, runs covr::codecov() -do_package_checks()