@@ -18,17 +18,14 @@ environment:
18
18
PYTHONIOENCODING : UTF-8
19
19
PYTEST_ARGS : -raR --numprocesses=auto --timeout=300 --durations=25
20
20
--cov-report= --cov=lib --log-level=DEBUG
21
- PINNEDVERS : " pyzmq!=21.0.0,!=22.0.0"
22
21
23
22
matrix :
24
23
- PYTHON_VERSION : " 3.8"
25
24
CONDA_INSTALL_LOCN : " C:\\ Miniconda3-x64"
26
25
TEST_ALL : " no"
27
- EXTRAREQS : " -r requirements/testing/extra.txt"
28
26
- PYTHON_VERSION : " 3.9"
29
27
CONDA_INSTALL_LOCN : " C:\\ Miniconda3-x64"
30
28
TEST_ALL : " no"
31
- EXTRAREQS : " -r requirements/testing/extra.txt"
32
29
33
30
# We always use a 64-bit machine, but can build x86 distributions
34
31
# with the PYTHON_ARCH variable
@@ -52,19 +49,13 @@ install:
52
49
- conda config --prepend channels conda-forge
53
50
54
51
# For building, use a new environment
55
- - conda create -q -n test-environment python=%PYTHON_VERSION% tk "pip<22.0"
56
- - activate test-environment
57
- # pull pywin32 from conda because on py38 there is something wrong with finding
58
- # the dlls when installed from pip
52
+ # Add python version to environment
53
+ # `^ ` escapes spaces for indentation
54
+ - echo ^ ^ - python=%PYTHON_VERSION% >> environment.yml
55
+ - conda env create -f environment.yml
56
+ - activate mpl-dev
59
57
- conda install -c conda-forge pywin32
60
- # install pyqt from conda-forge
61
- - conda install -c conda-forge pyqt
62
58
- echo %PYTHON_VERSION% %TARGET_ARCH%
63
- # Install dependencies from PyPI.
64
- - python -m pip install --upgrade -r requirements/testing/all.txt %EXTRAREQS% %PINNEDVERS%
65
- # Install optional dependencies from PyPI.
66
- # Sphinx is needed to run sphinxext tests
67
- - python -m pip install --upgrade sphinx
68
59
# Show the installed packages + versions
69
60
- conda list
70
61
@@ -104,7 +95,7 @@ artifacts:
104
95
type : zip
105
96
106
97
on_finish :
107
- - pip install codecov
98
+ - conda install codecov
108
99
- codecov -e PYTHON_VERSION PLATFORM
109
100
110
101
on_failure :
0 commit comments