-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (48 loc) · 1.32 KB
/
CI.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
42
43
44
45
46
47
48
49
50
51
52
name: CI
on:
push:
branches:
- main
paths-ignore:
- "README.md"
- "LICENSE.md"
pull_request:
workflow_dispatch:
env:
JULIA_NUM_THREADS: 2
jobs:
Test:
name: Test
permissions:
# Required by julia-actions/cache.
actions: write
# Required by julia-actions/cache.
contents: read
runs-on: ${{ matrix.config.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, version: '1.6'}
# R crashes on ubuntu-latest with newer versions of Julia.
- {os: macos-latest, version: '1'}
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.config.version }}
- uses: julia-actions/cache@v2.0.0
with:
cache-name: 'test-${{ matrix.config.os }}-${{ matrix.config.version }}'
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
r-version: '4'
- run: echo "LD_LIBRARY_PATH=$(R RHOME)/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
if: matrix.config.os == 'ubuntu-latest'
- run: Rscript -e 'install.packages("sirus")'
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
coverage: false