diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 8f193801..39d18736 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -66,7 +66,18 @@ jobs: - run: opam exec -- dune build --profile=release - run: opam exec -- dune test --profile=release + - name: Send coverage report to Coveralls + run: | + opam exec -- make coverage + opam exec -- bisect-ppx-report send-to Coveralls --coverage-path $BISECT_DIR + env: + BISECT_DIR: /tmp/GTcov + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PULL_REQUEST_NUMBER: ${{ github.event.number }} + + - name: Build documentation + if: false run: opam exec -- dune build -p GT @doc - name: Installing using Opam @@ -74,28 +85,27 @@ jobs: opam exec -- dune build @install opam exec -- dune install - - name: List files - run: opam show --list-files GT - - name: Deploy documentation - if: ${{ github.event.pull_request.head.repo.full_name == 'PLTools/OCanren' }} + #if: ${{ github.event.pull_request.head.repo.full_name == 'PLTools/OCanren' }} + if: false uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./_build/default/_doc/_html -- name: Build API documentation -if: github.event_name != 'pull_request' -run: | -opam exec -- make install odig -echo "ODIG_DOC_LOC=$(opam exec -- odig cache path)/html" >> $GITHUB_ENV - - - name: Send coverage report to Coveralls + - name: Build API documentation + if: github.event_name != 'pull_request' run: | - #git config --global --add safe.directory /__w/zanuda/zanuda - opam exec -- make coverage - opam exec -- bisect-ppx-report send-to Coveralls --coverage-path $BISECT_DIR - env: - BISECT_DIR: /tmp/GTcov - COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PULL_REQUEST_NUMBER: ${{ github.event.number }} + opam exec -- make install odig + echo "ODIG_DOC_LOC=$(opam exec -- odig cache path)/html" >> $GITHUB_ENV + + - name: Deploy documentation + #if: ${{ github.event.pull_request.head.repo.full_name == 'PLTools/OCanren' }} + if: false + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ${{ env.ODIG_DOC_LOC }} + + - name: List files + run: opam show --list-files GT diff --git a/Makefile b/Makefile index 1e2d802d..101123d3 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,13 @@ uninstall: dune build @install $(DFLAGS) dune uninstall $(DFLAGS) +.PHONY: odig +ODIG_SWITCHES = --odoc-theme=odig.gruvbox.light +ODIG_SWITCHES += --no-tag-index +ODIG_SWITCHES += --no-pkg-deps +odig: + odig odoc $(ODIG_SWITCHES) GT + .PHONY: coverage TEST_COV_D ?= /tmp/GTcov coverage: