Skip to content

Updates for Julia LTS switch to 1.10 #1172

Updates for Julia LTS switch to 1.10

Updates for Julia LTS switch to 1.10 #1172

Workflow file for this run

name: CI
# Run on main, tags, or any pull request
on:
push:
branches: ["main"]
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:
- "min" # Oldest supported version
- "lts" # 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
token: ${{ secrets.CODECOV_TOKEN }}
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
setup = quote
using Mocking: @mock, @patch, activate, apply
activate()
end
DocMeta.setdocmeta!(Mocking, :DocTestSetup, setup; recursive=true)
doctest(Mocking; manual=false)