Skip to content

Commit

Permalink
added windows python 3.9~3.12 ci
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-wangxu committed Feb 11, 2024
1 parent 011a709 commit bc1aabf
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# image:
# - Visual Studio 2017 # contains python2.7 ~ python3.8 and mysql 5.7
# - Visual Studio 2022 # contains python3.7 ~ python3.12 and mysql 8.0

services:
- mysql

Expand All @@ -12,36 +16,48 @@ environment:
- TOXENV: "pep8"
PYTHON: "C:\\Python35-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017

# - TOXENV: "py27"
# PYTHON: "C:\\Python27-x64"
# DISTUTILS_USE_SDK: "1"
- TOXENV: "py35"
PYTHON: "C:\\Python35-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017

- TOXENV: "py36"
PYTHON: "C:\\Python36-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOXENV: "py37"
PYTHON: "C:\\Python37-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOXENV: "py38"
PYTHON: "C:\\Python38-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOXENV: "py39"
PYTHON: "C:\\Python39-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOXENV: "py310"
PYTHON: "C:\\Python310-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- TOXENV: "py311"
PYTHON: "C:\\Python311-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- TOXENV: "py312"
PYTHON: "C:\\Python312-x64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
DISTUTILS_USE_SDK: "1"
- TOXENV: "cover"
PYTHON: "C:\\Python36-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017

install:
# We need wheel installed to build wheels
Expand All @@ -58,9 +74,19 @@ test_script:
# the interpreter you're using - Appveyor does not do anything special
# to put the Python evrsion you want to use on PATH.
- ps: |
$env:MYSQL_PWD="Password12!"
$cmd = '"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -e "create database testqueue;" --user=root'
iex "& $cmd"
if ($env:IMAGE -eq "Visual Studio 2017")
{
$env:MYSQL_PWD="Password12!"
$cmd = '"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -e "create database testqueue;" --user=root'
iex "& $cmd"
}
else
{
$env:MYSQL_PWD="Password12!"
$cmd = '"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -e "create database testqueue;" --user=root'
iex "& $cmd"
}
- "%PYTHON%\\Scripts\\tox.exe"

#on_success:
Expand Down

0 comments on commit bc1aabf

Please sign in to comment.