Skip to content
Snippets Groups Projects
Commit 73290ca9 authored by Alban Grastien's avatar Alban Grastien Committed by Michele Alberti
Browse files

[ci][test][wip] relax constraints on location of python3 interpreter

parent d0aa7107
No related branches found
No related tags found
No related merge requests found
......@@ -70,12 +70,6 @@ test:
- nix --extra-experimental-features "nix-command flakes" build
- nix --extra-experimental-features "nix-command flakes" flake check -L
test-lib:
stage: test
script:
- nix --extra-experimental-features "nix-command flakes" build
- nix --extra-experimental-features "nix-command flakes" develop --command make test-lib
## Manual generation of the documentation
documentation:
......
......@@ -17,7 +17,7 @@ test-ci:
dune build -j2 @tests/ci
test-lib:
dune runtest lib
dune runtest -j2 lib
promote:
dune promote --root=.
......
......@@ -99,11 +99,22 @@
dontInstall = true;
doCheck = true;
checkPhase = ''
make test
make test-ci
make test-lib
'';
buildInputs = oldAttrs.buildInputs ++
[ pkgs.python3Packages.onnx pkgs.python3Packages.scikit-learn ];
[
pkgs.python3
pkgs.python3Packages.onnx
pkgs.python3Packages.scikit-learn
];
nativeBuildInputs = oldAttrs.nativeBuildInputs ++
[
pkgs.python3
pkgs.python3Packages.onnx
pkgs.python3Packages.scikit-learn
];
});
};
apps = rec {
......
......@@ -39,7 +39,7 @@ let test_filename = dir ^ "/tests"
(* 1 *)
let () =
let pid =
Unix.create_process "/usr/bin/python3"
Unix.create_process "python3"
[|
"python3";
"../../../tests/bin/gen_linear_ovo.py";
......@@ -61,7 +61,7 @@ let () =
(* 3 *)
let () =
let pid =
Unix.create_process "/usr/bin/python3"
Unix.create_process "python3"
[|
"python3";
"../../../tests/bin/check_onnx.py";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment