Skip to content

Commit d0206e7

Browse files
committed
Do a non-shallow clone of the repo in CI
1 parent 980cccc commit d0206e7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
steps:
3131
- name: Checkout repository
3232
uses: actions/checkout@v3
33+
with:
34+
# setuptools_scm requires a non-shallow clone of the repository
35+
fetch-depth: 0
3336

3437
- name: Setup Python
3538
uses: actions/setup-python@v4

.github/workflows/pypi.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v3
16+
with:
17+
# setuptools_scm requires a non-shallow clone of the repository
18+
fetch-depth: 0
1619

1720
- uses: actions/setup-python@v4
1821
name: Install Python
1922

2023
- name: Build source distribution
2124
run: |
22-
python setup.py sdist
25+
pipx run build --sdist
2326
2427
- uses: pypa/gh-action-pypi-publish@master
2528
with:

0 commit comments

Comments
 (0)