1
1
# With infos from
2
2
# http://tjelvarolsson.com/blog/how-to-continuously-test-your-python-code-on-windows-using-appveyor/
3
3
# https://packaging.python.org/en/latest/appveyor/
4
- # https://github.com/rmcgibbo/python-appveyor-conda-example
5
4
---
6
5
7
6
# Backslashes in quotes need to be escaped: \ -> "\\"
@@ -30,7 +29,6 @@ environment:
30
29
31
30
matrix :
32
31
- PYTHON_VERSION : " 3.11"
33
- CONDA_INSTALL_LOCN : " C:\\ Miniconda3-x64"
34
32
TEST_ALL : " yes"
35
33
36
34
# We always use a 64-bit machine, but can build x86 distributions
@@ -46,24 +44,25 @@ cache:
46
44
- ' %USERPROFILE%\.cache\matplotlib'
47
45
48
46
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 xf micromamba.tar.bz2 -C c:\micromamba'
49
+ - ' set PATH=c:\micromamba\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 prepend channels conda-forge
50
54
51
55
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
-
57
56
# For building, use a new environment
58
57
# Add python version to environment
59
58
# `^ ` escapes spaces for indentation
60
59
- echo ^ ^ - python=%PYTHON_VERSION% >> environment.yml
61
- - conda env create -f environment.yml
62
- - activate mpl-dev
63
- - conda install -c conda-forge pywin32
60
+ - micromamba env create -f environment.yml
61
+ - micromamba activate mpl-dev
62
+ - micromamba install pywin32
64
63
- echo %PYTHON_VERSION% %TARGET_ARCH%
65
64
# Show the installed packages + versions
66
- - conda list
65
+ - micromamba list
67
66
68
67
test_script :
69
68
# Now build the thing..
@@ -74,7 +73,7 @@ test_script:
74
73
- ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
75
74
76
75
# this are optional dependencies so that we don't skip so many tests...
77
- - if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape
76
+ - if x%TEST_ALL% == xyes micromamba install -q ffmpeg inkscape
78
77
# miktex is available on conda, but seems to fail with permission errors.
79
78
# missing packages on conda-forge for imagemagick
80
79
# This install sometimes failed randomly :-(
@@ -95,7 +94,7 @@ artifacts:
95
94
type : Zip
96
95
97
96
on_finish :
98
- - conda install codecov
97
+ - micromamba install codecov
99
98
- codecov -e PYTHON_VERSION PLATFORM -n "$PYTHON_VERSION Windows"
100
99
101
100
on_failure :
0 commit comments