-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (38 loc) · 1.09 KB
/
Tutorials.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Adapted from https://github.com/marketplace/actions/run-julia-package-tests
name: Tutorials
on:
workflow_dispatch:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
jobs:
Tutorials:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.8']
julia-arch: [x64]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
show-versioninfo: true
- uses: julia-actions/julia-buildpkg@v1
- name: Instantiate project
run: |
julia --project=. -e 'using Pkg; Pkg.instantiate()'
julia --project=. -e 'using Pkg; Pkg.add("PyPlot")'
- name: Test notebooks
working-directory: ./docs/src/tutorials
env:
JULIA_NUM_THREADS: 8
run: |
python3 -m pip install jupytext matplotlib
ls *.ipynb | xargs python3 -m jupytext --to=jl
ls *.jl | xargs -n1 julia --project=../../..