Skip to content

Commit da8b11b

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 da8b11b

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.appveyor.yml

Lines changed: 15 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,27 @@ cache:
4644
- '%USERPROFILE%\.cache\matplotlib'
4745

4846
init:
49-
- echo %PYTHON_VERSION% %CONDA_INSTALL_LOCN%
47+
- ps:
48+
Invoke-Webrequest -URI https://micro.mamba.pm/api/micromamba/win-64/latest -OutFile C:\projects\micromamba.tar.bz2
49+
- ps: C:\PROGRA~1\7-Zip\7z.exe x C:\projects\micromamba.tar.bz2 -aoa -oC:\projects\
50+
- ps: C:\PROGRA~1\7-Zip\7z.exe x C:\projects\micromamba.tar -ttar -aoa -oC:\projects\
51+
- 'set PATH=C:\projects\Library\bin;%PATH%'
52+
- micromamba --help
53+
- micromamba shell init --shell cmd.exe
54+
- micromamba config set always_yes true
55+
- micromamba config prepend channels conda-forge
5056

5157
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-
5758
# For building, use a new environment
5859
# Add python version to environment
5960
# `^ ` escapes spaces for indentation
6061
- echo ^ ^ - python=%PYTHON_VERSION% >> environment.yml
61-
- conda env create -f environment.yml
62-
- activate mpl-dev
63-
- conda install -c conda-forge pywin32
62+
- micromamba env create -f environment.yml
63+
- micromamba activate mpl-dev
64+
- micromamba install pywin32
6465
- echo %PYTHON_VERSION% %TARGET_ARCH%
6566
# Show the installed packages + versions
66-
- conda list
67+
- micromamba list
6768

6869
test_script:
6970
# Now build the thing..
@@ -74,7 +75,7 @@ test_script:
7475
- '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
7576

7677
# this are optional dependencies so that we don't skip so many tests...
77-
- if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape
78+
- if x%TEST_ALL% == xyes micromamba install -q ffmpeg inkscape
7879
# miktex is available on conda, but seems to fail with permission errors.
7980
# missing packages on conda-forge for imagemagick
8081
# This install sometimes failed randomly :-(
@@ -95,7 +96,7 @@ artifacts:
9596
type: Zip
9697

9798
on_finish:
98-
- conda install codecov
99+
- micromamba install codecov
99100
- codecov -e PYTHON_VERSION PLATFORM -n "$PYTHON_VERSION Windows"
100101

101102
on_failure:

0 commit comments

Comments
 (0)