From 805316c6b22dc46e8b102353566800a93d9de5d9 Mon Sep 17 00:00:00 2001 From: ArthurW Date: Mon, 22 Jul 2024 11:27:27 +0200 Subject: [PATCH] Fix Codecov CI: add secret token --- .github/workflows/coverage.yml | 5 ++++- irmin.opam | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 97e750708b..92d326c178 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -30,6 +30,8 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Use OCaml ${{ matrix.ocaml-compiler }} uses: ocaml/setup-ocaml@v2 @@ -46,6 +48,7 @@ jobs: run: opam exec -- dune runtest --instrument-with bisect_ppx - name: Send coverage report to Codecov - run: opam exec -- bisect-ppx-report send-to Codecov + run: opam exec -- bisect-ppx-report send-to Codecov --verbose env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} PULL_REQUEST_NUMBER: ${{ github.event.number }} diff --git a/irmin.opam b/irmin.opam index 73da72ab39..a67a921fb1 100644 --- a/irmin.opam +++ b/irmin.opam @@ -37,12 +37,15 @@ depends: [ "qcheck-alcotest" {with-test} "vector" {with-test} "odoc" {(< "2.0.1" | > "2.0.2") & with-doc} # See https://github.com/ocaml/odoc/issues/793 - "bisect_ppx" {dev & >= "2.5.0"} + "bisect_ppx" {dev & = "dev"} ] pin-depends: [ # Fix race in formatters [ "alcotest.dev" "git+https://github.com/haesbaert/alcotest#99030be1df12a17fc2a0f3d00b181cd31cf6b0d4" ] + + # Fix Codecov missing upload token + [ "bisect_ppx.dev" "git+https://github.com/art-w/bisect_ppx#4807275c206faf2c1256121206713451a68b6057" ] ] conflicts: [