Skip to content

Commit 085a9b5

Browse files
committed
ci: Fix Sherlodoc tests installing released odoc
1 parent 4c0ea7c commit 085a9b5

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,19 @@ jobs:
5454
opam-pin: ${{ matrix.run-mdx != true }}
5555

5656
- name: Install dependencies
57-
run: opam install --deps-only --with-test ./odoc.opam ./odoc-parser.opam
57+
run: |
58+
opam install --deps-only --with-test ./odoc.opam ./odoc-parser.opam \
59+
${{ matrix.test-sherlodoc && './sherlodoc.opam' }}
5860
5961
- name: dune runtest
60-
run: opam exec -- dune runtest -p odoc,odoc-parser
61-
62-
- name: Test Sherlodoc
6362
if: matrix.test-sherlodoc == true
64-
run: |
65-
opam install --deps-only --with-test ./sherlodoc.opam
66-
opam exec -- dune runtest -p sherlodoc
63+
# Run all tests
64+
run: opam exec -- dune runtest
65+
66+
- name: dune runtest
67+
if: matrix.test-sherlodoc != true
68+
# Run the tests for odoc and odoc-parser only
69+
run: opam exec -- dune runtest -p odoc,odoc-parser
6770

6871
- name: Mdx tests
6972
if: matrix.run-mdx == true

0 commit comments

Comments
 (0)