Skip to content

Commit 172a86c

Browse files
committed
Enable shallow clones for CI and RTD, and explain why.
1 parent 6e648c4 commit 172a86c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919
with:
20-
fetch-depth: 0
20+
# Retrieve some git history, which will hopefully include the last release tag
21+
# and enable us to generate better version numbers.
22+
fetch-depth: 256
2123

2224
- name: Install uv
2325
uses: astral-sh/setup-uv@v6

.readthedocs.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ build:
77
os: ubuntu-22.04
88
tools:
99
python: "3.11"
10+
jobs:
11+
post_checkout:
12+
# Retrieve some git history, which will hopefully include the last release tag
13+
# and enable us to generate better version numbers.
14+
- git fetch --depth=256
1015
apt_packages:
1116
- build-essential
1217
- pkg-config

0 commit comments

Comments
 (0)