blob: fe4867b3ef833c57cd5f3bf25b7eb82f669689cf (
plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
name: build
on:
push:
pull_request:
schedule:
- cron: 30 2 * * */7
jobs:
R-test:
name: Unit tests for R package
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
R: [ '3.5.0', '3.6.0', '4.0.0' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup R
uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.R }}
- name: Install R dependencies
run: |
options(pkgType = 'binary')
install.packages('remotes')
remotes::install_deps(pkgdir='./R/', dependencies=T)
remotes::install_cran('testthat')
shell: Rscript {0}
- name: Build
run: make test_R
python-test:
name: Unit tests for Python package
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
py: [ '3.6', '3.7', '3.8', '3.9' ]
steps:
- name: Install Python ${{ matrix.py }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py }}
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: make test_python
|