Skip to content

Commit 240ee70

Browse files
committed
bugfix(ci): update python package workflow
1 parent 55c17c0 commit 240ee70

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/python-package.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,26 @@ jobs:
2626
outputs:
2727
version: ${{ steps.get-version.outputs.version }}
2828
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v5
31+
with:
32+
fetch-depth: 0
33+
2934
- name: Cache pip downloads
3035
uses: actions/cache@v4
3136
with:
32-
path: ~/.cache/pip
33-
key: pip
37+
path: ~/.cache/pip
38+
key: pip
3439

3540
- name: Install packaging (no deps)
3641
run: python3 -m pip install --no-deps --disable-pip-version-check packaging
3742

3843
- name: Validate PEP-440 tag (extract & check) and set output
3944
id: get-version
4045
run: |
41-
set -euo pipefail
42-
# The script derives the candidate from GITHUB_REF and writes version=... to GITHUB_OUTPUT
43-
python3 .github/scripts/validate_version.py
46+
set -euo pipefail
47+
# The script derives the candidate from GITHUB_REF and writes version=... to GITHUB_OUTPUT
48+
python3 .github/scripts/validate_version.py
4449
4550
unittest-linux:
4651
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)