|
4 | 4 | push:
|
5 | 5 | branches:
|
6 | 6 | - master
|
| 7 | + - ci |
7 | 8 | workflow_dispatch:
|
8 | 9 |
|
9 | 10 | jobs:
|
@@ -64,41 +65,12 @@ jobs:
|
64 | 65 | working-directory: mysqlclient
|
65 | 66 | env:
|
66 | 67 | 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" |
82 | 71 |
|
83 | 72 | - name: Upload Wheel
|
84 | 73 | uses: actions/upload-artifact@v2
|
85 | 74 | with:
|
86 | 75 | name: win-wheels
|
87 | 76 | 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