Skip to content

Commit

Permalink
Ensure all git history is available for setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed Nov 6, 2023
1 parent 8a38a95 commit feae48c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0 # Fetch all refs so setuptools_scm can generate the correct version number

- name: Set up Python ${{ env.LATEST_PYTHON_VER }}
uses: actions/setup-python@v4.7.1
Expand Down
5 changes: 4 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@

version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"
jobs:
post_checkout:
# RTD defaults to a depth of 50 but Briefcase versioning may require
# much more git history to accurately determine the SCM version
- git fetch --unshallow
pre_build:
- tox -e docs-lint

Expand Down

0 comments on commit feae48c

Please sign in to comment.