diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fd5db99..036d044 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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: | diff --git a/tests/test_modflow.py b/tests/test_modflow.py index 38b397a..637adc7 100644 --- a/tests/test_modflow.py +++ b/tests/test_modflow.py @@ -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