Skip to content

Commit

Permalink
new CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
KDr2 committed Jan 19, 2022
1 parent 000ef2b commit 1cb1b4c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/BenchmarksAndMicroIntegration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Benchmarks and MicroIntegration

on:
push:
branches:
- master
pull_request:

jobs:
test:
name: Benchmarks and MicroIntegration
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: 1
arch: x64
- uses: julia-actions/julia-buildpkg@latest
- name: setup enviroment
shell: julia --color=yes --project=perf {0}
run: |
using Pkg
try
# force it to use this PR's version of the package
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
pkg"add Turing#hg/new-libtask2" # TODO: remove this when Turing is updated
Pkg.update()
catch err
err isa Pkg.Resolve.ResolverError || rethrow()
# If we can't resolve that means this is incompatible by SemVer and this is fine
# It means we marked this as a breaking change, so we don't need to worry about
# Mistakenly introducing a breaking change, as we have intentionally made one
@info "Not compatible with this release. No problem." exception=err
exit(0) # Exit immediately, as a success
end
- name: run
run: julia --color=yes --project=perf perf/runtests.jl
3 changes: 3 additions & 0 deletions perf/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include("p0.jl")
include("p1.jl")
include("p2.jl")

0 comments on commit 1cb1b4c

Please sign in to comment.