Skip to content

Commit fa32232

Browse files
Prevent intermittent GitHub Actions failures on Windows by setting MPLBACKEND=Agg per https://github.com/orgs/community/discussions/26434#discussioncomment-3251926 - NREL#365
1 parent 6d2587b commit fa32232

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/github-actions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ jobs:
119119
- name: test
120120
env:
121121
TOXPYTHON: '${{ matrix.toxpython }}'
122+
123+
# Prevent intermittent GitHub Actions Windows failures per https://github.com/NREL/GEOPHIRES-X/issues/365
124+
MPLBACKEND: 'Agg'
125+
122126
run: >
123127
tox -e ${{ matrix.tox_env }} -v
124128

tests/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import matplotlib
2+
3+
# Backend should be 'Agg' in GitHub Actions to prevent intermittent Windows failures
4+
# per https://github.com/NREL/GEOPHIRES-X/issues/365
5+
print(f'[DEBUG] matplotlib backend: {matplotlib.get_backend()}')

0 commit comments

Comments
 (0)