Skip to content

Commit b15ea7b

Browse files
fix potential issues
- Fix PR paths trigger: pack-pip.yml -> pack-pip.yaml - Add python-version: '3.13' to setup-python step - Move Set up Python and Set up UV before Build wheels - Fix download-artifact v6
1 parent 0a13309 commit b15ea7b

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

.github/workflows/pack-pip.yaml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
tags: ['*']
1818
pull_request:
1919
paths:
20-
- .github/workflows/pack-pip.yml
20+
- .github/workflows/pack-pip.yaml
2121
- pyproject.toml
2222
- CMakeLists.txt
2323

@@ -40,25 +40,27 @@ jobs:
4040
SIGN_WINDOWS_WHEELS: ${{ github.event_name == 'workflow_dispatch' && inputs.signature-activation }}
4141
steps:
4242
- uses: actions/checkout@v6
43-
44-
- name: Load Visual C++ Environment Variables (Windows)
45-
if: runner.os == 'Windows'
46-
shell: cmd
47-
run: |
48-
call "C:\\Program Files\\Microsoft Visual Studio\\18\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat"
49-
set >> %GITHUB_ENV%
50-
51-
- name: Build wheels
52-
uses: pypa/cibuildwheel@v3.3.1
5343

5444
- name: Set up Python
5545
uses: actions/setup-python@v5
46+
with:
47+
python-version: '3.13'
5648

5749
- name: Set up UV
5850
uses: astral-sh/setup-uv@v6
5951
with:
6052
enable-cache: true
6153

54+
- name: Load Visual C++ Environment Variables (Windows)
55+
if: runner.os == 'Windows'
56+
shell: cmd
57+
run: |
58+
call "C:\\Program Files\\Microsoft Visual Studio\\18\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat"
59+
set >> %GITHUB_ENV%
60+
61+
- name: Build wheels
62+
uses: pypa/cibuildwheel@v3.3.1
63+
6264
- name: Test built wheel
6365
run: |
6466
uv venv .test-env
@@ -112,7 +114,7 @@ jobs:
112114
environment:
113115
name: testpypi
114116
steps:
115-
- uses: actions/download-artifact@v6
117+
- uses: actions/download-artifact@v7
116118
with:
117119
pattern: pkg-*
118120
path: dist
@@ -133,7 +135,7 @@ jobs:
133135
environment:
134136
name: pypi
135137
steps:
136-
- uses: actions/download-artifact@v6
138+
- uses: actions/download-artifact@v7
137139
with:
138140
pattern: pkg-*
139141
path: dist

0 commit comments

Comments
 (0)