diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0fea03b9d..59f7deafd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,24 +32,18 @@ jobs: - name: OCaml Deps run: opam install ocaml-compiler-libs alcotest conf-openblas ctypes dune-configurator stdio npy odoc - - name: Compile Owl, install - run: opam exec -- dune build @install - - - name: Run tests - # installing owl-base is a temp hack due to some unknown error in testing - run: | - opam install owl-base - opam exec -- dune runtest -j 1 --no-buffer -p owl - - name: Build doc run: | opam exec -- dune build @doc - cat docs/mathjax.js docs/highlight.pack.js >> _build/default/_doc/_html/highlight.pack.js - + cp docs/*.js _build/default/_doc/_html/ + cp docs/*.css _build/default/_doc/_html/ + # cat docs/mathjax.js docs/highlight.pack.js >> _build/default/_doc/_html/highlight.pack.js + - name: inspect run: | ls _build/default/_doc/_html/owl/Owl - ls _build/default/_doc/_html/owl/Owl_fft/ + ls _build/default/_doc/_html/owl/ + ls _build/default/_doc/_html/ - name: Deploy uses: peaceiris/actions-gh-pages@v3 @@ -57,3 +51,12 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: _build/default/_doc/_html destination_dir: . + + - name: Compile Owl, install + run: opam exec -- dune build @install + + - name: Run tests + # installing owl-base is a temp hack due to some unknown error in testing + run: | + opam install owl-base + opam exec -- dune runtest -j 1 --no-buffer -p owl \ No newline at end of file