ci: add CI and GitHub Pages documentation workflows

This commit is contained in:
2026-10-23 16:38:24 +02:00
committed by owenrees
parent 786bad8956
commit 2bf11e92a8
16 changed files with 169 additions and 38 deletions
+4 -4
View File
@@ -38,9 +38,8 @@ let test_path_takes_precedence_over_ply _ctxt =
let path_fen = "8/8/8/8/8/8/4K3/7k w - - 0 1" in
let ply_fen = "7k/8/8/8/8/8/8/4K3 b - - 0 1" in
let json =
Printf.sprintf
{| [{"fen":"%s","path":["e4","e5"]},{"ply":2,"fen":"%s"}] |} path_fen
ply_fen
Printf.sprintf {| [{"fen":"%s","path":["e4","e5"]},{"ply":2,"fen":"%s"}] |}
path_fen ply_fen
in
let diagrams = Pgn_to_tex.parse_diagrams_json json in
let rendered = Pgn_to_tex.to_tex ~diagram_data:diagrams pgn in
@@ -92,7 +91,8 @@ let test_malformed_json_yields_empty_diagrams _ctxt =
~diagram_data:(Pgn_to_tex.parse_diagrams_json json)
pgn
in
assert_equal ~printer:(fun x -> x)
assert_equal
~printer:(fun x -> x)
~msg:("malformed JSON: " ^ json)
expected actual)
malformed