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,22 @@ cache:
46
44
- ' %USERPROFILE%\.cache\matplotlib'
47
45
48
46
init :
49
- - echo %PYTHON_VERSION% %CONDA_INSTALL_LOCN%
47
+ - ps : Invoke-Expression ((Invoke-WebRequest -Uri https://micro.mamba.pm/install.ps1).Content)
48
+ - micromamba config --set always_yes true
49
+ - micromamba config --set show_channel_urls yes
50
+ - micromamba config --prepend channels conda-forge
50
51
51
52
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
53
# For building, use a new environment
58
54
# Add python version to environment
59
55
# `^ ` escapes spaces for indentation
60
56
- 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
64
60
- echo %PYTHON_VERSION% %TARGET_ARCH%
65
61
# Show the installed packages + versions
66
- - conda list
62
+ - micromamba list
67
63
68
64
test_script :
69
65
# Now build the thing..
@@ -74,7 +70,7 @@ test_script:
74
70
- ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
75
71
76
72
# 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
78
74
# miktex is available on conda, but seems to fail with permission errors.
79
75
# missing packages on conda-forge for imagemagick
80
76
# This install sometimes failed randomly :-(
@@ -95,7 +91,7 @@ artifacts:
95
91
type : Zip
96
92
97
93
on_finish :
98
- - conda install codecov
94
+ - micromamba install codecov
99
95
- codecov -e PYTHON_VERSION PLATFORM -n "$PYTHON_VERSION Windows"
100
96
101
97
on_failure :
0 commit comments