@@ -18,17 +18,14 @@ environment:
1818 PYTHONIOENCODING : UTF-8
1919 PYTEST_ARGS : -raR --numprocesses=auto --timeout=300 --durations=25
2020 --cov-report= --cov=lib --log-level=DEBUG
21- PINNEDVERS : " pyzmq!=21.0.0,!=22.0.0"
2221
2322 matrix :
2423 - PYTHON_VERSION : " 3.8"
2524 CONDA_INSTALL_LOCN : " C:\\ Miniconda3-x64"
2625 TEST_ALL : " no"
27- EXTRAREQS : " -r requirements/testing/extra.txt"
2826 - PYTHON_VERSION : " 3.9"
2927 CONDA_INSTALL_LOCN : " C:\\ Miniconda3-x64"
3028 TEST_ALL : " no"
31- EXTRAREQS : " -r requirements/testing/extra.txt"
3229
3330# We always use a 64-bit machine, but can build x86 distributions
3431# with the PYTHON_ARCH variable
@@ -52,19 +49,13 @@ install:
5249 - conda config --prepend channels conda-forge
5350
5451 # 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
5957 - conda install -c conda-forge pywin32
60- # install pyqt from conda-forge
61- - conda install -c conda-forge pyqt
6258 - 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
6859 # Show the installed packages + versions
6960 - conda list
7061
@@ -104,7 +95,7 @@ artifacts:
10495 type : zip
10596
10697on_finish :
107- - pip install codecov
98+ - conda install codecov
10899 - codecov -e PYTHON_VERSION PLATFORM
109100
110101on_failure :
0 commit comments