-
Notifications
You must be signed in to change notification settings - Fork 23
40 lines (33 loc) · 1.18 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Test Suite
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
R-CMD-check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test-suite: [ renderer, compiler, CRAN ]
name: Test Suite ${{ matrix.test-suite }}
env:
TEST_SUITE: ${{ matrix.test-suite }}
GITHUB_PAT: ${{ secrets.PAT_GITHUB }}
GH_ACTION: "ENABLED"
steps:
- uses: actions/checkout@v3
- name: install and update texlive
run: /usr/bin/sudo DEBIAN_FRONTEND=noninteractive apt update -y -qq
- run: /usr/bin/sudo DEBIAN_FRONTEND=noninteractive apt install tidy texlive texlive-fonts-extra -y
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
- name: install package
run: R CMD INSTALL .
- name: git config user.name
run: git config --global user.name "GitHub Actions"
- name: git config user.email
run: git config --global user.email [email protected]
- name: run tests
run: if [ "$TEST_SUITE" == "CRAN" ];then bash build.sh;else Rscript -e "source('tests/testthat.R', chdir = TRUE)";fi