Skip to content

Commit 15429b0

Browse files
author
KDr2
committed
new CI job
1 parent 000ef2b commit 15429b0

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Benchmarks and MicroIntegration
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Benchmarks and MicroIntegration
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: julia-actions/setup-julia@v1
18+
with:
19+
version: 1
20+
arch: x64
21+
- uses: julia-actions/julia-buildpkg@latest
22+
- name: setup enviroment
23+
shell: julia --color=yes --project=perf {0}
24+
run: |
25+
using Pkg
26+
try
27+
# force it to use this PR's version of the package
28+
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
29+
pkg"add Turing#hg/new-libtask2" # TODO: remove this when Turing is updated
30+
Pkg.update()
31+
catch err
32+
err isa Pkg.Resolve.ResolverError || rethrow()
33+
# If we can't resolve that means this is incompatible by SemVer and this is fine
34+
# It means we marked this as a breaking change, so we don't need to worry about
35+
# Mistakenly introducing a breaking change, as we have intentionally made one
36+
@info "Not compatible with this release. No problem." exception=err
37+
exit(0) # Exit immediately, as a success
38+
end
39+
- name: run
40+
shell: julia --color=yes --project=perf perf/runtests.jl

perf/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include("p0.jl")
2+
include("p1.jl")
3+
include("p2.jl")

0 commit comments

Comments
 (0)