Skip to content

Commit

Permalink
Add missing dep + test on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dlesbre committed Apr 12, 2024
1 parent bdf9cbc commit 72338ee
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ocaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ jobs:
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- run: opam install . --deps-only --with-test
- name: Install dependencies
run: opam install . --deps-only --with-test

- run: opam exec -- dune build
- name: Build library
run: opam exec -- dune build

- name: Run unit tests
run: opam exec -- dune test
1 change: 1 addition & 0 deletions PatriciaTree.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ depends: [
"qcheck-core" {>= "0.21.2"}
"zarith" {>= "1.13"}
"dune" {>= "2.0"}
"ppx_inline_test" {>= "v0.16.0"}
]
build: [
["dune" "subst"] {pinned}
Expand Down
5 changes: 4 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(lang dune 2.0)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; This file is part of the Patricia Tree library. ;;
;; ;;
Expand Down Expand Up @@ -48,4 +49,6 @@
(zarith
(>= "1.13"))
(dune
(>= "2.0"))))
(>= "2.0"))
(ppx_inline_test
(>= "v0.16.0"))))
2 changes: 1 addition & 1 deletion patriciaTreeTest.ml
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ let%test_module _ = (module struct
(* dump_test model1 model2 myres modelres; *)
(* Printf.printf "res is %b\n%!" @@ IntMap.equal (=) modelres myres; *)
modelres == myres)
let () = QCheck.Test.check_exn test_disjoint;;
let () = QCheck.Test.check_exn test_disjoint
end)


Expand Down

0 comments on commit 72338ee

Please sign in to comment.