
Allows for Julia code to not require the use of semi-colon which is matches how most users will write Julia code. An additional benefit is that it allows for use of single line comments.
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: CI
|
|
on:
|
|
- push
|
|
- pull_request
|
|
jobs:
|
|
test:
|
|
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
version:
|
|
- '1.0'
|
|
- '1.3'
|
|
- 'nightly'
|
|
os:
|
|
- ubuntu-latest
|
|
- macOS-latest
|
|
- windows-latest
|
|
arch:
|
|
- x64
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: julia-actions/setup-julia@v1
|
|
with:
|
|
version: ${{ matrix.version }}
|
|
arch: ${{ matrix.arch }}
|
|
- uses: julia-actions/julia-buildpkg@latest
|
|
- uses: julia-actions/julia-runtest@latest
|
|
docs:
|
|
name: Documentation
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: julia-actions/setup-julia@v1
|
|
with:
|
|
version: '1.0'
|
|
- run: |
|
|
julia --project=docs -e '
|
|
using Pkg
|
|
Pkg.develop(PackageSpec(path=pwd()))
|
|
Pkg.instantiate()'
|
|
- run: julia --project=docs docs/make.jl
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|