-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathappveyor.yml
108 lines (69 loc) · 2.3 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
# vm image to use
image:
- Visual Studio 2017
# version number to title
version: '{branch}-{build}'
# Not an MSBuild project
build: off
# preserve pip caches between builds
cache:
- '%LOCALAPPDATA%\pip\Cache'
# no need to clone entire repo
clone_depth: 5
# If required to fail fast
# matrix:
# fast_finish: true
environment:
CONDA_ROOT: 'C:\Miniconda3-x64'
matrix:
- PYTHON_VERSION: '3.10-cover'
platform: x86
- PYTHON_VERSION: '3.10-cover'
platform: x64
- PYTHON_VERSION: '3.6-cover'
platform: x86
- PYTHON_VERSION: '3.6-cover'
platform: x64
- PYTHON_VERSION: '3.7-cover'
platform: x86
- PYTHON_VERSION: '3.7-cover'
platform: x64
- PYTHON_VERSION: '3.8-cover'
platform: x86
- PYTHON_VERSION: '3.8-cover'
platform: x64
- PYTHON_VERSION: '3.9-cover'
platform: x86
- PYTHON_VERSION: '3.9-cover'
platform: x64
# initial commands
init:
- ps: echo $env:PYTHON_VERSION
# setup stage
install:
# install our build environment
- CALL "%CONDA_ROOT%\\Scripts\\activate.bat" # run activation script
- conda config --set always_yes yes # always yes
- conda update -q conda # update (quiet)
- conda install conda-build # install conda-build
# get the conda info
- conda info -a
# create environment with dependencies
- conda env create -q -n testenv-%PYTHON_VERSION% -f ./conda_recipe/requirements.yaml python=%PYTHON_VERSION%
- conda activate testenv-%PYTHON_VERSION%
# Now install the module
- 'pip install -ve .'
# actual testing performed
test_script:
- pytest --cov --cov-report=term-missing -vv
# cleanup the environment
after_test:
on_success:
- IF DEFINED WHEEL_PATH twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing %WHEEL_PATH%/*.whl
# stuff to do on fail
on_failure:
artifacts:
- path: dist\*
### To enable remote debugging uncomment this (also, see: http://www.appveyor.com/docs/how-to/rdp-to-build-worker):
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))