Skip to content

Commit 5310f97

Browse files
committed
ci: Re-arrange AppVeyor pipeline
Move the extra packages into the initial install step, and drop the conditional, since `TEST_ALL` is always on. Also, put the build step into the actual build phase of the pipeline.
1 parent 2d21987 commit 5310f97

1 file changed

Lines changed: 11 additions & 14 deletions

File tree

.appveyor.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,12 @@ environment:
2929

3030
matrix:
3131
- PYTHON_VERSION: "3.11"
32-
TEST_ALL: "yes"
3332

3433
# We always use a 64-bit machine, but can build x86 distributions
3534
# with the PYTHON_ARCH variable
3635
platform:
3736
- x64
3837

39-
# all our python builds have to happen in tests_script...
40-
build: false
41-
4238
cache:
4339
- '%LOCALAPPDATA%\pip\Cache'
4440
- '%USERPROFILE%\.cache\matplotlib'
@@ -57,24 +53,26 @@ init:
5753
- micromamba info
5854

5955
install:
60-
- micromamba env create -f environment.yml python=%PYTHON_VERSION% pywin32
56+
- set EXTRA_PACKAGES=pywin32 codecov
57+
# These are optional dependencies so that we don't skip so many tests...
58+
- set EXTRA_PACKAGES=%EXTRA_PACKAGES% ffmpeg inkscape
59+
# miktex is available on conda, but seems to fail with permission errors.
60+
# missing packages on conda-forge for imagemagick
61+
# This install sometimes failed randomly :-(
62+
# - choco install imagemagick
63+
64+
- micromamba env create -f environment.yml python=%PYTHON_VERSION% %EXTRA_PACKAGES%
6165
- micromamba activate mpl-dev
6266

63-
test_script:
67+
build_script:
6468
# Now build the thing..
6569
- set LINK=/LIBPATH:%cd%\lib
6670
- pip install -v --no-build-isolation --editable .[dev]
6771
# this should show no freetype dll...
6872
- set "DUMPBIN=%VS140COMNTOOLS%\..\..\VC\bin\dumpbin.exe"
6973
- '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
7074

71-
# this are optional dependencies so that we don't skip so many tests...
72-
- if x%TEST_ALL% == xyes micromamba install -q ffmpeg inkscape
73-
# miktex is available on conda, but seems to fail with permission errors.
74-
# missing packages on conda-forge for imagemagick
75-
# This install sometimes failed randomly :-(
76-
# - choco install imagemagick
77-
75+
test_script:
7876
# Test import of tkagg backend
7977
- python -c
8078
"import matplotlib as m; m.use('tkagg');
@@ -90,7 +88,6 @@ artifacts:
9088
type: Zip
9189

9290
on_finish:
93-
- micromamba install codecov
9491
- codecov -e PYTHON_VERSION PLATFORM -n "%PYTHON_VERSION% Windows"
9592

9693
on_failure:

0 commit comments

Comments
 (0)