From fd10cc862c2020b3f639cdb686d427b0198a2441 Mon Sep 17 00:00:00 2001 From: Renzo F <45401804+rennf93@users.noreply.github.com> Date: Fri, 26 Jun 2026 15:31:01 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df279cbb..e2d82fef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,6 +93,16 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v7 + with: + # The release-readiness smoke test calls ``git describe --tags`` to + # find the most recent release tag. ``actions/checkout``'s default + # shallow + no-tags clone makes that return empty, which made + # ``test_gather_snapshot_reads_the_real_repo`` fail with + # ``last_tag is None`` even though master had a tagged v0.13.0. + # ``fetch-depth: 0`` clones full history; the default ``fetch-tags`` + # would still skip tags on shallow clones, so we also pin it true. + fetch-depth: 0 + fetch-tags: true - name: Set up Python uses: actions/setup-python@v6 @@ -122,6 +132,16 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v7 + with: + # The release-readiness smoke test calls ``git describe --tags`` to + # find the most recent release tag. ``actions/checkout``'s default + # shallow + no-tags clone makes that return empty, which made + # ``test_gather_snapshot_reads_the_real_repo`` fail with + # ``last_tag is None`` even though master had a tagged v0.13.0. + # ``fetch-depth: 0`` clones full history; the default ``fetch-tags`` + # would still skip tags on shallow clones, so we also pin it true. + fetch-depth: 0 + fetch-tags: true - name: Set up Node uses: actions/setup-node@v6