Move examples to Literate.jl #12
Workflow file for this run
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: | |
push: | |
branches: | |
- 'main' | |
- 'ci/*' | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - include-all-prerelease=${{ matrix.include-all-prereleases }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.8' | |
- '1.9' | |
- '1.10' | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
arch: | |
- x64 | |
include: | |
- os: ubuntu-latest | |
version: 'nightly' | |
arch: x64 | |
allow_failure: true # separate test for nightly allowed to fail | |
- os: ubuntu-latest | |
version: '1' # automatically expands to the latest tagged 1.x release of Julia | |
arch: x64 | |
allow_failure: false | |
include-all-prereleases: true # latest tagged version should include prereleases | |
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 | |
env: | |
# Fix for Plots.jl with GR backend. | |
GKSwstype: nul | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
file: lcov.info | |
# - uses: julia-actions/julia-uploadcoveralls@v1 | |
# env: | |
# COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | |
downgrade: | |
name: Downgrade Compat | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: '1' | |
- uses: julia-actions/cache@v2 | |
- uses: julia-actions/julia-downgrade-compat@v1 | |
with: | |
skip: Pkg, TOML, Dates, LinearAlgebra, Random, Statistics, Test | |
- uses: julia-actions/julia-buildpkg@v1 | |
- uses: julia-actions/julia-runtest@v1 | |
docs: | |
name: Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: '1' | |
- uses: julia-actions/cache@v2 | |
- run: | | |
julia --project=docs -e ' | |
using Pkg | |
Pkg.develop(PackageSpec(path=pwd())) | |
Pkg.instantiate()' | |
- run: | | |
julia --project=docs -e ' | |
using Documenter: doctest | |
using UltraDark | |
doctest(UltraDark)' | |
- run: julia --project=docs docs/make.jl | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |