Skip to content

Commit 33b8f70

Browse files
committed
fix
1 parent a707366 commit 33b8f70

File tree

1 file changed

+4
-32
lines changed

1 file changed

+4
-32
lines changed

.github/workflows/windows.yaml

+4-32
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- ci
78
workflow_dispatch:
89

910
jobs:
@@ -64,41 +65,12 @@ jobs:
6465
working-directory: mysqlclient
6566
env:
6667
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8"
67-
CIBW_ARCHS_WINDOWS: "AMD64"
68-
run: python -m cibuildwheel --prerelease-pythons --output-dir dist
69-
70-
#- name: Build wheels
71-
# shell: cmd
72-
# working-directory: mysqlclient
73-
# run: |
74-
# py -3.10 -m pip install -U setuptools wheel pip
75-
# py -3.10 setup.py bdist_wheel
76-
# py -3.9 -m pip install -U setuptools wheel pip
77-
# py -3.9 setup.py bdist_wheel
78-
# py -3.8 -m pip install -U setuptools wheel pip
79-
# py -3.8 setup.py bdist_wheel
80-
# py -3.7 -m pip install -U setuptools wheel pip
81-
# py -3.7 setup.py bdist_wheel
68+
CIBW_ARCHS: "AMD64"
69+
CIBW_TEST_COMMAND: "python -c \"import MySQLdb; print(MySQLdb.version_info)\" "
70+
run: "python -m cibuildwheel --prerelease-pythons --output-dir dist"
8271

8372
- name: Upload Wheel
8473
uses: actions/upload-artifact@v2
8574
with:
8675
name: win-wheels
8776
path: mysqlclient/dist/*.whl
88-
89-
- name: Check wheels
90-
shell: bash
91-
working-directory: mysqlclient/dist
92-
run: |
93-
ls -la
94-
py -3.11 -m pip install --no-index --find-links . mysqlclient
95-
py -3.11 -c "import MySQLdb; print(MySQLdb.version_info)"
96-
py -3.10 -m pip install --no-index --find-links . mysqlclient
97-
py -3.10 -c "import MySQLdb; print(MySQLdb.version_info)"
98-
py -3.9 -m pip install --no-index --find-links . mysqlclient
99-
py -3.9 -c "import MySQLdb; print(MySQLdb.version_info)"
100-
py -3.8 -m pip install --no-index --find-links . mysqlclient
101-
py -3.8 -c "import MySQLdb; print(MySQLdb.version_info)"
102-
py -3.7 -m pip install --no-index --find-links . mysqlclient
103-
py -3.7 -c "import MySQLdb; print(MySQLdb.version_info)"
104-

0 commit comments

Comments
 (0)