Skip to content

Package documentation #1124

Package documentation

Package documentation #1124

Workflow file for this run

name: CI
# Run on master, tags, or any pull request
on:
push:
branches: "master"
tags: "*"
pull_request:
paths:
- "src/**/*.jl"
- "test/**/*.jl"
- "Project.toml"
- ".github/workflows/CI.yml"
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- "1.0" # Oldest supported version
- "1.6" # LTS
- "1" # Latest Release
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
with:
files: lcov.info
doc-tests:
name: Doctests
runs-on: ubuntu-latest
# These permissions are needed to:
# - Checkout the repo
# - Delete old caches: https://github.com/julia-actions/cache#usage
# - Deploy the docs to the `gh-pages` branch: https://documenter.juliadocs.org/stable/man/hosting/#Permissions
permissions:
actions: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: "1"
- uses: julia-actions/cache@v2
- name: Configure docs environment
shell: julia --project=docs --color=yes {0}
run: |
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
- name: Run Doctests
shell: julia --project=docs --color=yes {0}
run: |
using Documenter: DocMeta, doctest
using Mocking: Mocking
DocMeta.setdocmeta!(Mocking, :DocTestSetup, :(using Mocking); recursive=true)
doctest(Mocking)