Skip to content
56 changes: 46 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
workflow_dispatch:
jobs:
test-stable:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ matrix.group }}
name: JL${{ matrix.version }} - ${{ matrix.arch }} - ${{ matrix.group }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
JULIA_PKG_SERVER: ""
Expand All @@ -19,15 +19,13 @@ jobs:
version:
- '1.6'
- '1.8'
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
group:
- 'basic_functional_group'
- 'test_cases_group'
- 'tmp_debug_group'
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
Expand All @@ -48,19 +46,27 @@ jobs:
if: ${{ matrix.version != 'nightly' }}

upstream-dev:
#if: github.ref != 'refs/heads/release**'
name: Upstream Dev
runs-on: ubuntu-latest
env:
JULIA_PKG_SERVER: ""
strategy:
fail-fast: false
matrix:
arch:
- x64
version:
- '1.8'
- 'nightly'
group:
- 'basic_functional_group'
- 'test_cases_group'
steps:
- uses: actions/checkout@v2

- uses: julia-actions/setup-julia@v1
with:
version: 1.7
arch: x64

version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
Expand All @@ -71,14 +77,44 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-

- run: |
git config --global user.name Tester
git config --global user.email te@st.er

- name: Upstream Dev
env:
IIF_TEST_GROUP: ${{ matrix.group }}
run: |
julia --project=@. --check-bounds=yes -e 'using Pkg; Pkg.add(PackageSpec(name="ApproxManifoldProducts",rev="master"));'
julia --project=@. --check-bounds=yes -e 'using Pkg; Pkg.add(PackageSpec(name="DistributedFactorGraphs",rev="master"));'
julia --project=@. --check-bounds=yes -e 'using Pkg; Pkg.test("IncrementalInference"; coverage=false)'
shell: bash

test-debug-group:
needs: [ upstream-dev ]
name: JL${{ matrix.version }} - ${{ matrix.group }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
JULIA_PKG_SERVER: ""
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
version:
- '1.8'
arch:
- x64
group:
- 'tmp_debug_group'
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
IIF_TEST_GROUP: ${{ matrix.group }}
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ TEST_GROUP = get(ENV, "IIF_TEST_GROUP", "all")
#...
if TEST_GROUP in ["all", "tmp_debug_group"]
include("testMultiHypo3Door.jl")
include("priorusetest.jl")
end

if TEST_GROUP in ["all", "basic_functional_group"]
Expand Down Expand Up @@ -76,7 +77,6 @@ include("testEuclidDistance.jl")
end

if TEST_GROUP in ["all", "test_cases_group"]
include("priorusetest.jl")
include("testnullhypothesis.jl")
include("testVariousNSolveSize.jl")
include("testExplicitMultihypo.jl")
Expand Down