From 1cb1b4c3da1dc92220148a03d48d1c62a852e9f1 Mon Sep 17 00:00:00 2001 From: KDr2 Date: Wed, 19 Jan 2022 00:31:55 +0000 Subject: [PATCH] new CI job --- .../BenchmarksAndMicroIntegration.yml | 40 +++++++++++++++++++ perf/runtests.jl | 3 ++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/BenchmarksAndMicroIntegration.yml create mode 100644 perf/runtests.jl diff --git a/.github/workflows/BenchmarksAndMicroIntegration.yml b/.github/workflows/BenchmarksAndMicroIntegration.yml new file mode 100644 index 00000000..60764bce --- /dev/null +++ b/.github/workflows/BenchmarksAndMicroIntegration.yml @@ -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 diff --git a/perf/runtests.jl b/perf/runtests.jl new file mode 100644 index 00000000..9856db08 --- /dev/null +++ b/perf/runtests.jl @@ -0,0 +1,3 @@ +include("p0.jl") +include("p1.jl") +include("p2.jl")