Skip to content

Commit

Permalink
Use non-interactive Agg matplotlib backend; try tune test
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews committed Sep 13, 2024
1 parent 43e5c6f commit 437ebee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
# pick lower and upper versions only
python-version: ["3.9", "3.12"]

env:
# Use a non-interactive matplotlib backend
MPLBACKEND: Agg

steps:
- uses: actions/checkout@v4

Expand All @@ -41,9 +45,9 @@ jobs:
- name: Run tests with required packages
run: pytest -v --cov

- name: Install PyQt5 for macOS
if: matrix.os == 'macos-latest'
run: pip install PyQt5
# - name: Install PyQt5 for macOS
# if: matrix.os == 'macos-latest'
# run: pip install PyQt5

- name: Run tests with optional packages
run: |
Expand Down
2 changes: 1 addition & 1 deletion tests/test_modflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@ def test_flopy_package_period(tmp_path):
],
np.float32,
)
np.testing.assert_almost_equal(dl["q"], expected_q)
np.testing.assert_allclose(dl["q"], expected_q)
assert "RLEN" not in dl.dtype.names
assert "RLEN".ljust(16) not in dl.dtype.names

Expand Down

0 comments on commit 437ebee

Please sign in to comment.