Skip to content

Commit 9eb1e67

Browse files
committed
CI: Use micromamba on AppVeyor
This is generally faster at solving than conda, and AppVeyor seems to have an older version of the latter too.
1 parent aad2a58 commit 9eb1e67

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.appveyor.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# With infos from
22
# http://tjelvarolsson.com/blog/how-to-continuously-test-your-python-code-on-windows-using-appveyor/
33
# https://packaging.python.org/en/latest/appveyor/
4-
# https://github.com/rmcgibbo/python-appveyor-conda-example
54
---
65

76
# Backslashes in quotes need to be escaped: \ -> "\\"
@@ -30,7 +29,6 @@ environment:
3029

3130
matrix:
3231
- PYTHON_VERSION: "3.11"
33-
CONDA_INSTALL_LOCN: "C:\\Miniconda3-x64"
3432
TEST_ALL: "yes"
3533

3634
# We always use a 64-bit machine, but can build x86 distributions
@@ -46,24 +44,22 @@ cache:
4644
- '%USERPROFILE%\.cache\matplotlib'
4745

4846
init:
49-
- echo %PYTHON_VERSION% %CONDA_INSTALL_LOCN%
47+
- '"${SHELL}" <(curl -L micro.mamba.pm/install.sh)'
48+
- micromamba config --set always_yes true
49+
- micromamba config --set show_channel_urls yes
50+
- micromamba config --prepend channels conda-forge
5051

5152
install:
52-
- set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
53-
- conda config --set always_yes true
54-
- conda config --set show_channel_urls yes
55-
- conda config --prepend channels conda-forge
56-
5753
# For building, use a new environment
5854
# Add python version to environment
5955
# `^ ` escapes spaces for indentation
6056
- echo ^ ^ - python=%PYTHON_VERSION% >> environment.yml
61-
- conda env create -f environment.yml
62-
- activate mpl-dev
63-
- conda install -c conda-forge pywin32
57+
- micromamba env create -f environment.yml
58+
- micromamba activate mpl-dev
59+
- micromamba install pywin32
6460
- echo %PYTHON_VERSION% %TARGET_ARCH%
6561
# Show the installed packages + versions
66-
- conda list
62+
- micromamba list
6763

6864
test_script:
6965
# Now build the thing..
@@ -74,7 +70,7 @@ test_script:
7470
- '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
7571

7672
# this are optional dependencies so that we don't skip so many tests...
77-
- if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape
73+
- if x%TEST_ALL% == xyes micromamba install -q ffmpeg inkscape
7874
# miktex is available on conda, but seems to fail with permission errors.
7975
# missing packages on conda-forge for imagemagick
8076
# This install sometimes failed randomly :-(
@@ -95,7 +91,7 @@ artifacts:
9591
type: Zip
9692

9793
on_finish:
98-
- conda install codecov
94+
- micromamba install codecov
9995
- codecov -e PYTHON_VERSION PLATFORM -n "$PYTHON_VERSION Windows"
10096

10197
on_failure:

0 commit comments

Comments
 (0)