Skip to content

Add and bump main, test, and docs compats (#289) #1

Add and bump main, test, and docs compats (#289)

Add and bump main, test, and docs compats (#289) #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: [v*]
pull_request:
schedule:
- cron: "0 0 * * *"
env:
PYTHON: "Conda" # use Julia's packaged Conda build for installing packages
jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia-version: ["1"]
os: [ubuntu-latest, windows-latest, macOS-latest]
include:
- julia-version: "1.6"
os: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
if: matrix.os == 'ubuntu-latest'
- name: Set R lib path for RCall.jl
if: matrix.os == 'ubuntu-latest'
run: echo "LD_LIBRARY_PATH=$(R RHOME)/lib" >> $GITHUB_ENV
- name: Install R packages
if: matrix.os == 'ubuntu-latest'
run: |
install.packages("remotes")
remotes::install_github("stan-dev/loo")
shell: Rscript {0}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: x64
- name: Cache Julia artifacts
uses: actions/cache@v2
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- name: Install wget for windows
if: matrix.os == 'windows-latest'
uses: crazy-max/ghaction-chocolatey@v2
with:
args: install wget
- uses: julia-actions/julia-buildpkg@latest
- name: Install ArviZ dependencies
run: |
using Pkg
Pkg.instantiate()
using Conda
# https://discourse.julialang.org/t/conda-not-installing-matplotlib-for-pyplot/96813/2
Conda.add("conda==23.1.0")
using ArviZ
ArviZ.initialize_arviz()
ArviZ.initialize_pandas()
shell: julia --color=yes --project {0}
- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false
if: ${{ matrix.julia-version == '1' && matrix.os =='ubuntu-latest' }}