Skip to content

Commit 8c3250f

Browse files
committed
Actions: Install matplotlib explicitly on unix
1 parent 20cf02f commit 8c3250f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/unix_unit_tests.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,21 @@ jobs:
6060
- name: Check out MHKiT-MATLAB
6161
uses: actions/checkout@v4
6262

63+
# mhkit depends on matplotlib-base, but pandas tries to register a matplotlib
64+
# plotting backend during mhkit import. matplotlib-base may not be sufficient
65+
# for this registration, so we install full matplotlib explicitly.
6366
- name: Conda install mhkit
6467
shell: bash -l {0}
6568
run: |
6669
conda activate mhkit_conda_env
67-
conda install -c conda-forge mhkit==$MHKIT_PYTHON_VERSION
70+
conda install -c conda-forge mhkit==$MHKIT_PYTHON_VERSION matplotlib
71+
72+
- name: Verify matplotlib and mhkit imports
73+
shell: bash -l {0}
74+
run: |
75+
conda activate mhkit_conda_env
76+
python -c "import matplotlib; print(f'matplotlib: {matplotlib.__version__}')"
77+
python -c "import mhkit; print(f'mhkit: {mhkit.__version__}')"
6878
6979
- name: pip install mhkit-python-utils module from source
7080
shell: bash -l {0}

0 commit comments

Comments
 (0)