Skip to content

Commit

Permalink
simplify github action
Browse files Browse the repository at this point in the history
  • Loading branch information
art-w committed Apr 13, 2024
1 parent e68e347 commit 2405853
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,9 @@ jobs:
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-local-packages: $${ matrix.opam-local-packages }}
opam-depext-flags: --with-test

- name: Pin local packages
run: |
# Pin all local opam files to avoid internal conflicts
#
# TODO: replace with `opam pin --with-version` when Opam 2.1 is
# available via `setup-ocaml`.
opam exec -- ocamlc -config
find . -maxdepth 1 -name '*.opam' -printf '%P\n' |\
cut -d. -f1 |\
xargs -I{} -n 1 opam pin add {}.dev ./ -n
- name: Install depexts
run: |
find . -maxdepth 1 -name '*.opam' -printf '%P\n' |\
cut -d. -f1 |\
xargs opam depext --update -y

- name: Install Opam dependencies
run: opam install ${{ matrix.packages }} --with-test --deps-only
run: opam install . --with-test --deps-only

- name: Run tests with coverage instrumentation
run: opam exec -- dune runtest --verbose --instrument-with bisect_ppx
Expand Down

0 comments on commit 2405853

Please sign in to comment.