diff --git a/.github/workflows/bundle_windows.yml b/.github/workflows/bundle_windows.yml index 0f56aad..0b3c529 100644 --- a/.github/workflows/bundle_windows.yml +++ b/.github/workflows/bundle_windows.yml @@ -26,8 +26,11 @@ jobs: python-version: ["3.12"] steps: - - uses: actions/checkout@v2 - + - uses: actions/checkout@v4 + - name: Get history and tags for SCM versioning to work + run: | + git fetch --prune --unshallow + git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: diff --git a/.github/workflows/pypi_publish.yml b/.github/workflows/pypi_publish.yml index 4ec2529..4ce3cb9 100644 --- a/.github/workflows/pypi_publish.yml +++ b/.github/workflows/pypi_publish.yml @@ -16,7 +16,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - name: Get history and tags for SCM versioning to work + run: | + git fetch --prune --unshallow + git fetch --depth=1 origin +refs/tags/*:refs/tags/* - uses: actions/setup-python@v2 with: python-version: "3.12" diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index ae9cc48..9cf24c5 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -17,8 +17,11 @@ jobs: python-version: ["3.12", "3.13"] steps: - - uses: actions/checkout@v2 - + - uses: actions/checkout@v4 + - name: Get history and tags for SCM versioning to work + run: | + git fetch --prune --unshallow + git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: