Skip to content

Commit 3dfe34e

Browse files
authored
Update ci.yml
1 parent 842f94b commit 3dfe34e

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: CI
2+
env:
3+
JULIA_NUM_THREADS: 2
24
on:
35
pull_request:
46
branches:
@@ -15,11 +17,11 @@ jobs:
1517
fail-fast: false
1618
matrix:
1719
version:
18-
- '1.5' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
19-
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
20-
- 'nightly'
20+
- '1'
2121
os:
2222
- ubuntu-latest
23+
- macos-latest
24+
- windows-latest
2325
arch:
2426
- x64
2527
steps:
@@ -44,3 +46,25 @@ jobs:
4446
- uses: codecov/codecov-action@v1
4547
with:
4648
file: lcov.info
49+
docs:
50+
name: Documentation
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v2
54+
- uses: julia-actions/setup-julia@v1
55+
with:
56+
version: '1'
57+
- run: |
58+
julia --project=docs -e '
59+
using Pkg
60+
Pkg.develop(PackageSpec(path=pwd()))
61+
Pkg.instantiate()'
62+
- run: |
63+
julia --project=docs -e '
64+
using Documenter: doctest
65+
using Circuitscape
66+
doctest(Circuitscape)'
67+
- run: julia --project=docs docs/make.jl
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)