Skip to content

Commit 69ea829

Browse files
devmotionst--
andauthored
Run examples with separate processes (#314)
Examples are run asynchronously with different processes and no load path trickery is needed. CompatHelper is updated such that example environment are updated as well. * Run examples with separate processes * Update CompatHelper * Fix SVM example * Fix GR error messages * Improve SVM example * Try to fix edit link * Fix preprocessing * Fix links * Move "SVM" example back to svm.jl * Minor simplification * Update .github/workflows/docs.yml Co-authored-by: st-- <st--@users.noreply.github.com> * Fix test errors Co-authored-by: st-- <st--@users.noreply.github.com>
1 parent edc5f13 commit 69ea829

File tree

10 files changed

+492
-56
lines changed

10 files changed

+492
-56
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,33 @@
11
name: CompatHelper
2+
23
on:
34
schedule:
4-
- cron: '00 00 * * *'
5+
- cron: 0 0 * * *
56
workflow_dispatch:
7+
68
jobs:
79
CompatHelper:
810
runs-on: ubuntu-latest
911
steps:
10-
- name: Pkg.add("CompatHelper")
11-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12-
- name: CompatHelper.main()
12+
- name: "Install CompatHelper"
13+
run: |
14+
import Pkg
15+
name = "CompatHelper"
16+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
17+
version = "2"
18+
Pkg.add(; name, uuid, version)
19+
shell: julia --color=yes {0}
20+
- name: "Run CompatHelper"
21+
run: |
22+
import CompatHelper
23+
subdirs = ["", "test", "docs"]
24+
for f in readdir(joinpath(@__DIR__, "examples"); join=true)
25+
if isdir(f)
26+
push!(subdirs, joinpath("examples", basename(f)))
27+
end
28+
end
29+
CompatHelper.main(; subdirs=subdirs)
30+
shell: julia --color=yes {0}
1331
env:
1432
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1533
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16-
run: julia -e 'using CompatHelper; CompatHelper.main(; subdirs = ["", "docs", "test"])'

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
2020
- name: Build and deploy
2121
env:
22+
GKSwstype: nul # turn off GR's interactive plotting for notebooks
2223
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
2324
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
2425
run: julia --project=docs/ docs/make.jl

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*.json
22
*.cov
3-
Manifest.toml
3+
/Manifest.toml
4+
/test/Manifest.toml
45
coverage/
56
src/update_v0.8.0
67
.DS_store

docs/.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
build/
22
site/
3-
4-
#Temp to avoid to many changes
3+
src/examples/

0 commit comments

Comments
 (0)