Skip to content

Commit e14addc

Browse files
committed
Fix Windows CI failures by using Agg matplotlib backend
Set MPLBACKEND=Agg for pytest runs to avoid Tcl/Tk dependencies on headless CI environments. This is standard practice for CI systems that don't have display servers.
1 parent 4150941 commit e14addc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,15 @@ jobs:
6060
pip install -e .
6161
6262
- name: Run pytest
63+
env:
64+
MPLBACKEND: Agg
6365
run: |
6466
pytest -v --tb=short
6567
6668
- name: Run pytest with coverage (Ubuntu Python 3.12 only)
6769
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
70+
env:
71+
MPLBACKEND: Agg
6872
run: |
6973
pytest --cov=hypertools --cov-report=xml --cov-report=term-missing
7074

0 commit comments

Comments
 (0)