Merge pull request #5 from ReactiveBayes/new-lin-reg #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [review_requested,reopened,synchronize] | |
push: | |
branches: | |
- 'main' | |
tags: '*' | |
check_run: | |
types: [rerequested] | |
schedule: | |
- cron: '0 8 * * 1' # Run at 8:00 AM UTC every Monday | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
examples: | |
name: Examples | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: '1.11' | |
- uses: julia-actions/cache@v1 | |
- uses: actions/cache@v3 | |
id: examples | |
with: | |
path: | | |
docs/src/examples | |
docs/src/autogenerated | |
key: ${{ github.sha }} | |
- name: Build examples | |
run: | | |
julia -e 'using Pkg; Pkg.add("Weave"); Pkg.precompile()' | |
make examples-setup | |
make examples | |
docs: | |
name: Documentation | |
runs-on: ubuntu-latest | |
needs: examples | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: '1.11' | |
- uses: actions/cache@v3 | |
id: examples | |
with: | |
path: | | |
docs/src/examples | |
docs/src/autogenerated | |
key: ${{ github.sha }} | |
- uses: julia-actions/cache@v1 | |
- name: Build documentation | |
run: | | |
make docs-setup | |
make docs | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |