Skip to content

Commit 753249d

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 a81de2a commit 753249d

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

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

5646
- name: Set up Python
5747
uses: actions/setup-python@v5
48+
with:
49+
python-version: '3.13'
5850

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

56+
- name: Load Visual C++ Environment Variables (Windows)
57+
if: runner.os == 'Windows'
58+
shell: cmd
59+
run: |
60+
call "C:\\Program Files\\Microsoft Visual Studio\\18\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat"
61+
set >> %GITHUB_ENV%
62+
63+
- name: Build wheels
64+
uses: pypa/cibuildwheel@v3.3.1
65+
6466
- name: Test built wheel
6567
run: |
6668
uv venv .test-env
@@ -130,7 +132,7 @@ jobs:
130132
environment:
131133
name: testpypi
132134
steps:
133-
- uses: actions/download-artifact@v6
135+
- uses: actions/download-artifact@v7
134136
with:
135137
pattern: pkg-*
136138
path: dist
@@ -151,7 +153,7 @@ jobs:
151153
environment:
152154
name: pypi
153155
steps:
154-
- uses: actions/download-artifact@v6
156+
- uses: actions/download-artifact@v7
155157
with:
156158
pattern: pkg-*
157159
path: dist

0 commit comments

Comments
 (0)