😎 Give your xaringan slides some style
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

79 lines
2.2KB

  1. # NOTE: This workflow is overkill for most R packages
  2. # check-standard.yaml is likely a better choice
  3. # usethis::use_github_action("check-standard") will install it.
  4. #
  5. # For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
  6. # https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
  7. on:
  8. push:
  9. branches:
  10. - main
  11. pull_request:
  12. branches:
  13. - main
  14. name: R-CMD-check
  15. jobs:
  16. R-CMD-check:
  17. runs-on: ${{ matrix.config.os }}
  18. name: ${{ matrix.config.os }} (${{ matrix.config.r }})
  19. strategy:
  20. fail-fast: false
  21. matrix:
  22. config:
  23. - {os: macOS-latest, r: 'release'}
  24. - {os: windows-latest, r: 'release'}
  25. - {os: windows-latest, r: '3.6'}
  26. - {os: ubuntu-18.04, r: 'devel', http-user-agent: 'release'}
  27. - {os: ubuntu-18.04, r: 'release'}
  28. - {os: ubuntu-18.04, r: 'oldrel-1'}
  29. env:
  30. GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
  31. R_KEEP_PKG_SOURCE: yes
  32. steps:
  33. - uses: actions/checkout@v2
  34. - uses: r-lib/actions/setup-r@v1
  35. id: install-r
  36. with:
  37. r-version: ${{ matrix.config.r }}
  38. http-user-agent: ${{ matrix.config.http-user-agent }}
  39. use-public-rspm: true
  40. - uses: r-lib/actions/setup-pandoc@v1
  41. - name: Install devel system dependencies
  42. if: matrix.config.os == 'ubuntu-18.04' && matrix.config.r == 'devel'
  43. run: sudo apt-get install -y libcurl4-openssl-dev
  44. - uses: r-lib/actions/setup-r-dependencies@v1
  45. with:
  46. cache-version: 1
  47. extra-packages: rcmdcheck
  48. - uses: r-lib/actions/check-r-package@v1
  49. - name: Show testthat output
  50. if: always()
  51. run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
  52. shell: bash
  53. - name: Code coverage
  54. if: matrix.config.os == 'macOS-latest' && matrix.config.r == 'release'
  55. shell: Rscript {0}
  56. run: |
  57. pak::pkg_install("covr")
  58. covr::codecov()
  59. - name: Upload check results
  60. if: failure()
  61. uses: actions/upload-artifact@main
  62. with:
  63. name: ${{ matrix.config.os }}-r${{ matrix.config.r }}-results
  64. path: check