From 5e449a2b2b04b01f7715c6c995dcb58908e7db65 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Mon, 27 May 2024 10:09:06 +0200 Subject: [PATCH] Fix test and CI --- .github/workflows/test.yml | 15 +++++++-------- examples/basics.jl | 4 ++-- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 840f8ef9..e4240b49 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,24 +12,23 @@ concurrency: cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} jobs: test: - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} - runs-on: ${{ matrix.os }} + name: Julia ${{ matrix.version }} - ${{ github.event_name }} + runs-on: ubuntu-latest strategy: fail-fast: false matrix: version: + - '1.9' - '1' os: - ubuntu-latest - arch: - - x64 steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - - uses: julia-actions/cache@v1 + arch: x64 + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 diff --git a/examples/basics.jl b/examples/basics.jl index b0d7d320..17f1eb18 100644 --- a/examples/basics.jl +++ b/examples/basics.jl @@ -189,7 +189,7 @@ This is important to keep in mind when testing new models. In many applications, we have access to various observation sequences of different lengths. =# -nb_seqs = 100 +nb_seqs = 300 long_obs_seqs = [last(rand(rng, hmm, rand(rng, 100:200))) for k in 1:nb_seqs]; typeof(long_obs_seqs) @@ -259,6 +259,6 @@ hcat(initialization(hmm_est_concat), initialization(hmm)) control_seq = fill(nothing, last(seq_ends)); #src test_identical_hmmbase(rng, hmm, 100; hmm_guess) #src -test_identical_hmmbase(rng, transpose_hmm(hmm), 100; hmm_guess=transpose_hmm(hmm_guess)) #src test_coherent_algorithms(rng, hmm, control_seq; seq_ends, hmm_guess) #src test_type_stability(rng, hmm, control_seq; seq_ends, hmm_guess) #src +test_identical_hmmbase(rng, transpose_hmm(hmm), 100; hmm_guess=transpose_hmm(hmm_guess)) #src