Skip to content
Snippets Groups Projects
Commit bcd7bae9 authored by Julien Girard-Satabin's avatar Julien Girard-Satabin
Browse files

[release][wip] Custom action to ensure python3 onnx package is available for tests

parent 5765b809
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,7 @@ depends: [ ...@@ -38,6 +38,7 @@ depends: [
"conf-python-3" {with-test} "conf-python-3" {with-test}
"odoc" {with-doc} "odoc" {with-doc}
] ]
dev-repo: "git+https://git.frama-c.com/pub/caisar.git"
build: [ build: [
["dune" "subst"] {dev} ["dune" "subst"] {dev}
[ [
...@@ -49,9 +50,9 @@ build: [ ...@@ -49,9 +50,9 @@ build: [
jobs jobs
"--promote-install-files=false" "--promote-install-files=false"
"@install" "@install"
"@ensures-onnx"
"@runtest" {with-test} "@runtest" {with-test}
"@doc" {with-doc} "@doc" {with-doc}
] ]
["dune" "install" "-p" name "--create-install-files" name] ["dune" "install" "-p" name "--create-install-files" name]
] ]
dev-repo: "git+https://git.frama-c.com/pub/caisar.git"
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@ensures-onnx"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
(rule
(alias ensures-onnx)
(deps (package caisar))
(action
(system "curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && python3 -m pip install onnx"))
)
(cram (cram
(alias local) (alias local)
(applies_to * \ nir_to_onnx acasxu_ci arithmetic comparison sequencing) (applies_to * \ nir_to_onnx acasxu_ci arithmetic comparison sequencing)
......
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