-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (43 loc) · 1.18 KB
/
cross_language_test.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
41
42
43
44
45
46
47
48
49
50
51
52
name: Cross-language test
on:
workflow_dispatch:
pull_request:
paths:
- "Python/**"
- "R/**"
- "src/**"
- "tests/cross_language/**"
- ".github/workflows/cross_language_test.yaml"
jobs:
test:
name: cross-language test
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up R 4.2.0
uses: r-lib/actions/setup-r@v2
with:
r-version: 4.2.0
- name: Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 2
working-directory: R/
- name: Install R package
run: R CMD INSTALL R/
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: "Python/ci-requirements.txt"
- name: Install Python package
run: |
sudo apt-get install -y libarmadillo-dev
python -m pip install Python/
- name: Run cross-language test
working-directory: tests/cross_language
run: bash run.sh