Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b619c4b

Browse files
committed
Simplify appveyor to only use conda
Closes #24394
1 parent 3d6c3da commit b619c4b

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.appveyor.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ environment:
2424
- PYTHON_VERSION: "3.8"
2525
CONDA_INSTALL_LOCN: "C:\\Miniconda3-x64"
2626
TEST_ALL: "no"
27-
EXTRAREQS: "-r requirements/testing/extra.txt"
2827
- PYTHON_VERSION: "3.9"
2928
CONDA_INSTALL_LOCN: "C:\\Miniconda3-x64"
3029
TEST_ALL: "no"
31-
EXTRAREQS: "-r requirements/testing/extra.txt"
3230

3331
# We always use a 64-bit machine, but can build x86 distributions
3432
# with the PYTHON_ARCH variable
@@ -52,19 +50,13 @@ install:
5250
- conda config --prepend channels conda-forge
5351

5452
# For building, use a new environment
55-
- conda create -q -n test-environment python=%PYTHON_VERSION% tk "pip<22.0"
56-
- activate test-environment
53+
- echo ^ ^ - python=%PYTHON_VERSION% >> environment.yml
54+
- conda env create -f environment.yml
55+
- activate mpl-dev
5756
# pull pywin32 from conda because on py38 there is something wrong with finding
5857
# the dlls when installed from pip
5958
- conda install -c conda-forge pywin32
60-
# install pyqt from conda-forge
61-
- conda install -c conda-forge pyqt
6259
- 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
6860
# Show the installed packages + versions
6961
- conda list
7062

@@ -104,7 +96,7 @@ artifacts:
10496
type: zip
10597

10698
on_finish:
107-
- pip install codecov
99+
- conda install codecov
108100
- codecov -e PYTHON_VERSION PLATFORM
109101

110102
on_failure:

0 commit comments

Comments
 (0)