Skip to content

Refactoring Factors: data -> state, observation and operational memory #727

Refactoring Factors: data -> state, observation and operational memory

Refactoring Factors: data -> state, observation and operational memory #727

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- develop
- release/*
tags:
- v**
workflow_dispatch:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
contents: read
strategy:
fail-fast: false
matrix:
version:
- 'lts' # long term support
- '1' # stable
# - 'pre' # pre-release
os:
- ubuntu-latest
arch:
- x64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Julia
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- name: Cache Artifacts
uses: julia-actions/cache@v2
- name: Julia Build Pkg
uses: julia-actions/julia-buildpkg@latest
- name: Run tests
env:
IIF_TEST: true
uses: julia-actions/julia-runtest@latest
- name: Process Coverage
uses: julia-actions/julia-processcoverage@v1
- name: Code Coverage
uses: codecov/codecov-action@v4
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
docs:
needs: test
name: Documentation
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup julia
uses: julia-actions/setup-julia@v2
with:
version: 'lts'
arch: x64
- name: Build Docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: |
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
julia --project=docs/ docs/make.jl