Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
env:
PYTHON: ""
run: |
julia --project -e 'using Conda; Conda.add("python=3.13")'
julia --project -e 'using Conda; Conda.add("scipy=1.17.1")'
julia --project -e 'using Conda; Conda.add("scikit-learn=1.8.0")'
julia --project -e 'using Conda; Conda.add("python=3.11")'
julia --project -e 'using Conda; Conda.add("scipy=1.14.1")'
julia --project -e 'using Conda; Conda.add("scikit-learn=1.5.1")'
julia --project -e 'using Pkg; Pkg.add("PyCall"); Pkg.build("PyCall")'

- name: Run Unit Tests
Expand Down Expand Up @@ -91,9 +91,9 @@ jobs:
env:
PYTHON: ""
run: |
julia --project -e 'using Conda; Conda.add("python=3.13")'
julia --project -e 'using Conda; Conda.add("scipy=1.17.1")'
julia --project -e 'using Conda; Conda.add("scikit-learn=1.8.0")'
julia --project -e 'using Conda; Conda.add("python=3.11")'
julia --project -e 'using Conda; Conda.add("scipy=1.14.1")'
julia --project -e 'using Conda; Conda.add("scikit-learn=1.5.1")'
julia --project -e 'using Pkg; Pkg.add("PyCall"); Pkg.build("PyCall")'

- name: Run Unit Tests
Expand Down Expand Up @@ -134,9 +134,9 @@ jobs:
env:
PYTHON: ""
run: |
julia --project -e 'using Conda; Conda.add("python=3.13")'
julia --project -e 'using Conda; Conda.add("scipy=1.17.0")'
julia --project -e 'using Conda; Conda.add("scikit-learn=1.8.0")'
julia --project -e 'using Conda; Conda.add("python=3.11")'
julia --project -e 'using Conda; Conda.add("scipy=1.14.1")'
julia --project -e 'using Conda; Conda.add("scikit-learn=1.5.1")'
julia --project -e 'using Pkg; Pkg.add("PyCall"); Pkg.build("PyCall")'
- name: Run Unit Tests
env:
Expand Down
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
using Test

TEST_PLOT_OUTPUT = !isempty(get(ENV, "CES_TEST_PLOT_OUTPUT", ""))
TEST_PLOT_OUTPUT = get(ENV, "CES_TEST_PLOT_OUTPUT", false)
@info "[in test/runtest.jl], create plots? CES_TEST_PLOT_OUTPUT: $(TEST_PLOT_OUTPUT)"

if TEST_PLOT_OUTPUT
using Plots
end

ENV["SKLEARN_JL_VERSION"] = "1.5.1"
sklearn_jl_version = get(ENV, "SKLEARN_JL_VERSION", "1.8.0")
@info "[in test/runtest.jl], (if running Github actions) this variable must match the scikit learn version in .github/workflows/tests.yml. SKLEARN_JL_VERSION: $(sklearn_jl_version)"

function include_test(_module)
println("Starting tests for $_module")
Expand Down
Loading