From 3baf9d35ee1dab7f3453e5fc74d68e882382b5c3 Mon Sep 17 00:00:00 2001 From: PhoenixBound Date: Thu, 12 Dec 2024 19:50:38 -0600 Subject: [PATCH] CI: Fetch all commits and tags This is required for now because of how setuptools_scm relies on tags and the number of commits since that tag to determine the version number string. (Without that info, the version will be named "0.1.dev1+g(hash)" every time, possibly even for actual releases.) --- .github/workflows/pyinstaller.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pyinstaller.yaml b/.github/workflows/pyinstaller.yaml index f11340b..c67cce4 100644 --- a/.github/workflows/pyinstaller.yaml +++ b/.github/workflows/pyinstaller.yaml @@ -10,6 +10,8 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 # setuptools-scm uses tags and commit counts to set the version - uses: actions/setup-python@v5 with: python-version: '3.8'