Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,12 @@ environment:

matrix:
- PYTHON_VERSION: "3.11"
TEST_ALL: "yes"

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

# all our python builds have to happen in tests_script...
build: false

cache:
- '%LOCALAPPDATA%\pip\Cache'
- '%USERPROFILE%\.cache\matplotlib'
Expand All @@ -57,24 +53,26 @@ init:
- micromamba info

install:
- micromamba env create -f environment.yml python=%PYTHON_VERSION% pywin32
- set EXTRA_PACKAGES=pywin32 codecov
# These are optional dependencies so that we don't skip so many tests...
- set EXTRA_PACKAGES=%EXTRA_PACKAGES% ffmpeg inkscape
# miktex is available on conda, but seems to fail with permission errors.
# missing packages on conda-forge for imagemagick
# This install sometimes failed randomly :-(
# - choco install imagemagick

- micromamba env create -f environment.yml python=%PYTHON_VERSION% %EXTRA_PACKAGES%
- micromamba activate mpl-dev

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

# this are optional dependencies so that we don't skip so many tests...
- if x%TEST_ALL% == xyes micromamba install -q ffmpeg inkscape
# miktex is available on conda, but seems to fail with permission errors.
# missing packages on conda-forge for imagemagick
# This install sometimes failed randomly :-(
# - choco install imagemagick

test_script:
# Test import of tkagg backend
- python -c
"import matplotlib as m; m.use('tkagg');
Expand All @@ -90,7 +88,6 @@ artifacts:
type: Zip

on_finish:
- micromamba install codecov
- codecov -e PYTHON_VERSION PLATFORM -n "%PYTHON_VERSION% Windows"

on_failure:
Expand Down
Loading