We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 716927d commit 1f977f0Copy full SHA for 1f977f0
1 file changed
.github/workflows/DSITest.yml
@@ -52,6 +52,21 @@ jobs:
52
python -m pip install --upgrade pip setuptools
53
python -m pip install pytest
54
python -m pip install .
55
+ - name: Configure Matplotlib (headless) & prebuild cache
56
+ run: |
57
+ export MPLBACKEND=Agg
58
+ export MPLCONFIGDIR="$RUNNER_TEMP/mplconfig"
59
+ mkdir -p "$MPLCONFIGDIR"
60
+ python - <<'PY'
61
+ import matplotlib
62
+ matplotlib.use("Agg")
63
+ from matplotlib import font_manager
64
+ font_manager._load_fontmanager(try_read_cache=False)
65
+ print("Matplotlib cache:", matplotlib.get_cachedir())
66
+ PY
67
+ env:
68
+ MPLBACKEND: Agg
69
+ MPLCONFIGDIR: ${{ runner.temp }}/mplconfig
70
- name: Test execution
71
run: |
72
python examples/dsi/DSITestCreateSingle.py
0 commit comments