Skip to content

Commit

Permalink
CI: Don't run Mdx and coverage on older versions
Browse files Browse the repository at this point in the history
Mdx isn't co-installable with Odoc on older compilers. Coverage
dependencies are unused on these builds.
  • Loading branch information
Julow committed Dec 12, 2023
1 parent ffc9e87 commit 7a76b5d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ jobs:
- 4.04.x
- 4.14.x
include:
- os: ubuntu-latest # Enable coverage only on a single build
- os: ubuntu-latest
ocaml-compiler: 4.14.x
# We don't need to compute coverage for more than one build
send-coverage: true
# Mdx tests Mdx tests
run-mdx: true
fail-fast: false

runs-on: ${{ matrix.os }}
Expand All @@ -40,21 +43,19 @@ jobs:
- name: Install dependencies
run: opam install -y --deps-only -t ./odoc.opam ./odoc-parser.opam

- name: Install bisect_ppx
run: opam install bisect_ppx

- name: dune runtest
run: opam exec -- dune runtest

# Run Mdx tests that are disabled by default.
- name: Mdx tests
if: matrix.run-mdx == true
run: |
opam install -y mdx
opam exec -- dune build @runmdx
- name: Send coverage stats to Coveralls
if: matrix.send-coverage == true
run: |
opam install bisect_ppx
opam exec -- dune runtest --instrument-with bisect_ppx --force
opam exec -- bisect-ppx-report send-to Coveralls
env:
Expand Down

0 comments on commit 7a76b5d

Please sign in to comment.