-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.4 KB
/
Runtests.yml
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
name: Runtests
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.6']
r-version: ['4.2.1']
julia-arch: [x64]
os: [ubuntu-latest] # [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
- name: Install libcurl on Linux
if: runner.os == 'Linux'
run: sudo apt-get update -y && sudo apt-get install -y libcurl4-openssl-dev
- name: Install Dependencies for R
run: |
r = getOption("repos")
r["CRAN"] = "https://cloud.r-project.org/"
options(repos=r)
install.packages("splmm")
install.packages("glmnet")
shell: sudo Rscript {0}
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@v1
env:
LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libcurl.so.4
LD_LIBRARY_PATH: /opt/R/${{ matrix.r-version }}/lib/R/lib
- uses: julia-actions/julia-processcoverage@v1
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: lcov.info