Skip to content

Commit

Permalink
Explicitly fetch tags when building and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjackson committed Dec 11, 2024
1 parent 1ea49fb commit 89fce21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build_upload_pypi_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ jobs:
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout project (for test files)
- name: Checkout project
uses: actions/checkout@v4
with:
fetch-tags: true

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down Expand Up @@ -106,7 +108,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Ensure tags are fetched for versioning
fetch-tags: true


- name: Create source distribution
shell: bash -l {0}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Ensure tags are fetched for versioning
fetch-tags: true
- uses: actions/setup-python@v5
with:
python-version: |
Expand Down

0 comments on commit 89fce21

Please sign in to comment.