2022-08-26 23:25:37 +02:00
|
|
|
# ==================================================================== #
|
2023-07-08 17:30:05 +02:00
|
|
|
# TITLE: #
|
2022-10-05 09:12:22 +02:00
|
|
|
# AMR: An R Package for Working with Antimicrobial Resistance Data #
|
2022-08-26 23:25:37 +02:00
|
|
|
# #
|
2023-07-08 17:30:05 +02:00
|
|
|
# SOURCE CODE: #
|
2022-08-26 23:25:37 +02:00
|
|
|
# https://github.com/msberends/AMR #
|
|
|
|
# #
|
2023-07-08 17:30:05 +02:00
|
|
|
# PLEASE CITE THIS SOFTWARE AS: #
|
2022-10-05 09:12:22 +02:00
|
|
|
# Berends MS, Luz CF, Friedrich AW, Sinha BNM, Albers CJ, Glasner C #
|
|
|
|
# (2022). AMR: An R Package for Working with Antimicrobial Resistance #
|
|
|
|
# Data. Journal of Statistical Software, 104(3), 1-31. #
|
2023-05-27 10:39:22 +02:00
|
|
|
# https://doi.org/10.18637/jss.v104.i03 #
|
2022-10-05 09:12:22 +02:00
|
|
|
# #
|
2022-12-27 15:16:15 +01:00
|
|
|
# Developed at the University of Groningen and the University Medical #
|
|
|
|
# Center Groningen in The Netherlands, in collaboration with many #
|
|
|
|
# colleagues from around the world, see our website. #
|
2022-08-26 23:25:37 +02:00
|
|
|
# #
|
|
|
|
# This R package is free software; you can freely use and distribute #
|
|
|
|
# it for both personal and commercial purposes under the terms of the #
|
|
|
|
# GNU General Public License version 2.0 (GNU GPL-2), as published by #
|
|
|
|
# the Free Software Foundation. #
|
|
|
|
# We created this package for both routine data analysis and academic #
|
|
|
|
# research and it was publicly released in the hope that it will be #
|
|
|
|
# useful, but it comes WITHOUT ANY WARRANTY OR LIABILITY. #
|
|
|
|
# #
|
|
|
|
# Visit our website for the full manual and a complete tutorial about #
|
|
|
|
# how to conduct AMR data analysis: https://msberends.github.io/AMR/ #
|
|
|
|
# ==================================================================== #
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
# run in each PR in this repo
|
|
|
|
branches: '**'
|
2022-10-05 09:12:22 +02:00
|
|
|
push:
|
|
|
|
branches: '**'
|
2022-10-18 22:53:38 +02:00
|
|
|
schedule:
|
2023-01-05 15:41:07 +01:00
|
|
|
# also run a schedule everyday at 1 AM.
|
2022-10-18 22:53:38 +02:00
|
|
|
# this is to check that all dependencies are still available (see R/zzz.R)
|
2022-10-18 23:03:16 +02:00
|
|
|
- cron: '0 1 * * *'
|
2022-08-26 23:25:37 +02:00
|
|
|
|
2023-01-05 15:03:18 +01:00
|
|
|
name: check-recent
|
2022-08-26 23:25:37 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-10-05 09:12:22 +02:00
|
|
|
R-code-check:
|
2022-08-26 23:25:37 +02:00
|
|
|
runs-on: ${{ matrix.config.os }}
|
|
|
|
|
|
|
|
continue-on-error: ${{ matrix.config.allowfail }}
|
|
|
|
|
|
|
|
name: ${{ matrix.config.os }} (R-${{ matrix.config.r }})
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
config:
|
2023-05-26 20:37:00 +02:00
|
|
|
# current development version, check all major OSes:
|
2023-01-05 15:03:18 +01:00
|
|
|
- {os: macOS-latest, r: 'devel', allowfail: false}
|
|
|
|
- {os: windows-latest, r: 'devel', allowfail: false}
|
|
|
|
- {os: ubuntu-latest, r: 'devel', allowfail: false}
|
2023-01-05 18:21:48 +01:00
|
|
|
|
2023-05-26 20:37:00 +02:00
|
|
|
# current 'release' version, check all major OSes:
|
|
|
|
- {os: macOS-latest, r: '4.3', allowfail: false}
|
|
|
|
- {os: windows-latest, r: '4.3', allowfail: false}
|
|
|
|
- {os: ubuntu-latest, r: '4.3', allowfail: false}
|
2023-01-05 18:21:48 +01:00
|
|
|
|
2023-01-05 15:41:07 +01:00
|
|
|
# older versions (see also check-old.yaml for even older versions):
|
2023-05-26 20:37:00 +02:00
|
|
|
- {os: ubuntu-latest, r: '4.2', allowfail: false}
|
2023-01-05 15:41:07 +01:00
|
|
|
- {os: ubuntu-latest, r: '4.1', allowfail: false}
|
|
|
|
- {os: ubuntu-latest, r: '4.0', allowfail: false}
|
2023-05-26 20:37:00 +02:00
|
|
|
- {os: ubuntu-latest, r: '3.6', allowfail: false} # when a new R releases, this one has to move to check-old.yaml
|
2022-08-26 23:25:37 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
R_KEEP_PKG_SOURCE: yes
|
2022-10-05 09:12:22 +02:00
|
|
|
|
2022-08-26 23:25:37 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: r-lib/actions/setup-pandoc@v2
|
|
|
|
|
|
|
|
- uses: r-lib/actions/setup-r@v2
|
|
|
|
with:
|
|
|
|
r-version: ${{ matrix.config.r }}
|
|
|
|
# use RStudio Package Manager to quickly install packages
|
2022-10-05 09:12:22 +02:00
|
|
|
use-public-rspm: true
|
2022-08-26 23:25:37 +02:00
|
|
|
|
|
|
|
- uses: r-lib/actions/setup-r-dependencies@v2
|
|
|
|
with:
|
|
|
|
extra-packages: any::rcmdcheck
|
|
|
|
needs: check
|
|
|
|
|
|
|
|
- uses: r-lib/actions/check-r-package@v2
|
|
|
|
env:
|
|
|
|
_R_CHECK_LENGTH_1_CONDITION_: verbose
|
|
|
|
_R_CHECK_LENGTH_1_LOGIC2_: verbose
|
|
|
|
# during 'R CMD check', R_LIBS_USER will be overwritten, so:
|
|
|
|
R_LIBS_USER_GH_ACTIONS: ${{ env.R_LIBS_USER }}
|
|
|
|
R_RUN_TINYTEST: true
|
2023-01-05 18:21:48 +01:00
|
|
|
|
|
|
|
- name: Show tinytest output
|
|
|
|
if: always()
|
|
|
|
run: |
|
2023-01-06 10:08:25 +01:00
|
|
|
find . -name 'tinytest.Rout*' -exec cat '{}' \; || true
|
2023-01-05 18:21:48 +01:00
|
|
|
shell: bash
|