-
Notifications
You must be signed in to change notification settings - Fork 122
/
appveyor.yml
110 lines (90 loc) · 2.9 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
environment:
TWINE_USERNAME: __token__
TWINE_PASSWORD:
secure: A+ks10m1F2uReMyFye6x7fEWxuKCAFTn3Qu+Lw8T/4g3ExgSz9N8LxIEvXC+RkQwjTarXJyCOM8er4OsfYbQzfIfdMxgsuEuSY3TiPj2AssIXuNp7Xps56cRT+AQqXMp4UJ913Ryq1yKvnJHq91c6Lptx7WtWvbixrUI6p+ocV8zb8rO37KHUXR864z9h87dpwiY7ovKhV5+RF6AR+rmdt7nsaPLAd3M65r7M9v/sebaMNjhau5sizD3cwxOlzh/xVWhXABcMd+VlIhtq3xa4g==
matrix:
- PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda3-x64
- PYTHON_VERSION: "3.6"
PYTHON_ARCH: "32"
MINICONDA: C:\Miniconda3
- PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda3-x64
- PYTHON_VERSION: "3.7"
PYTHON_ARCH: "32"
MINICONDA: C:\Miniconda3
- PYTHON_VERSION: "3.8"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda3-x64
# - PYTHON_VERSION: "3.8"
# PYTHON_ARCH: "32"
# MINICONDA: C:\Miniconda3
- PYTHON_VERSION: "3.9"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda3-x64
# - PYTHON_VERSION: "3.9"
# PYTHON_ARCH: "32"
# MINICONDA: C:\Miniconda3
- PYTHON_VERSION: "3.10"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda3-x64
# - PYTHON_VERSION: "3.10"
# PYTHON_ARCH: "32"
# MINICONDA: C:\Miniconda3
- PYTHON_VERSION: "3.11"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda3-x64
# The above commented lines has problem executing the `test_script`
# Python >= 3.8 (32-bit)
# platform: x64
init:
- ps: |
Write-Output "*** Python $env:PYTHON_VERSION ***"
$env:Path += ";$env:PYTHON_ROOT;$env:PYTHON_ROOT\Scripts"
install:
- ps: |
"INFO: Variables"
"INFO: is a tag: $Env:APPVEYOR_REPO_TAG"
"INFO: $APPVEYOR_REPO_TAG"
"INFO: tag name: $Env:APPVEYOR_REPO_TAG_NAME"
"INFO: $APPVEYOR_REPO_TAG_NAME"
- "SET PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda config --add channels pypi
- conda info -a
- "conda create -q -n test-environment python=%PYTHON_VERSION% numpy cython wheel matplotlib"
- activate test-environment
- python -m pip install --no-cache-dir -U pip
- ps: |
Write-Output "Installing requirements..."
pip install -r requirements.txt
build_script:
- git submodule update --init
- pip install -e .
test_script:
- ps: |
$ErrorActionPreference = "Stop"
Set-Location "$env:APPVEYOR_BUILD_FOLDER\demo"
python demo.py
Set-Location "$env:APPVEYOR_BUILD_FOLDER"
after_test:
- python setup.py bdist_wheel
artifacts:
- path: dist\*
deploy_script:
- ps: |
$ErrorActionPreference = "Stop"
if ($Env:APPVEYOR_REPO_TAG -eq "true"){
pip install twine
pip install -U urllib3==1.26.6
twine upload dist/*.whl
}
else{
"Not a tag (skipped)"
"$APPVEYOR_REPO_TAG"
"$APPVEYOR_REPO_TAG_NAME"
}
# -and $APPVEYOR_REPO_TAG_NAME -match "^v([0-9.a-z]+)$") {