Skip to content

Commit b588bfb

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 b588bfb

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.appveyor.yml

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

4846
init:
49-
- echo %PYTHON_VERSION% %CONDA_INSTALL_LOCN%
47+
- ps: Invoke-Webrequest -URI https://micro.mamba.pm/api/micromamba/win-64/latest -OutFile micromamba.tar.bz2
48+
- tar -C %APPVEYOR_BUILD_FOLDER% xf micromamba.tar.bz2
49+
- set PATH=%APPVEYOR_BUILD_FOLDER%\Library\bin;%PATH%
50+
- micromamba --help
51+
- ps: micromamba shell hook -s powershell | Out-String | Invoke-Expression
52+
- micromamba config --set always_yes true
53+
- micromamba config --set show_channel_urls yes
54+
- micromamba config --prepend channels conda-forge
5055

5156
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-
5757
# For building, use a new environment
5858
# Add python version to environment
5959
# `^ ` escapes spaces for indentation
6060
- echo ^ ^ - python=%PYTHON_VERSION% >> environment.yml
61-
- conda env create -f environment.yml
62-
- activate mpl-dev
63-
- conda install -c conda-forge pywin32
61+
- micromamba env create -f environment.yml
62+
- micromamba activate mpl-dev
63+
- micromamba install pywin32
6464
- echo %PYTHON_VERSION% %TARGET_ARCH%
6565
# Show the installed packages + versions
66-
- conda list
66+
- micromamba list
6767

6868
test_script:
6969
# Now build the thing..
@@ -74,7 +74,7 @@ test_script:
7474
- '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
7575

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

9797
on_finish:
98-
- conda install codecov
98+
- micromamba install codecov
9999
- codecov -e PYTHON_VERSION PLATFORM -n "$PYTHON_VERSION Windows"
100100

101101
on_failure:

0 commit comments

Comments
 (0)