Skip to content

Commit

Permalink
Install PyQt5 for macOS, adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews committed Sep 13, 2024
1 parent 437ebee commit 1abbdad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ 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: ${{ startsWith(matrix.os, 'macos') }}
run: pip install PyQt5

- name: Run tests with optional packages
run: |
pip install -e .[extra]
pytest -v -n2 --cov --cov-append
- name: Run doctest
if: matrix.python-version == '3.12'
if: matrix.python-version == matrix.python-version[-1] # oldest
run: |
pytest -v swn --doctest-modules
- name: Run tests with older flopy and other packages
if: matrix.python-version == '3.9'
if: matrix.python-version == matrix.python-version[0] # newest
run: |
pip install "flopy<3.5" "pandas<2.0" "geopandas<1.0" "shapely<2.0" "numpy<2.0"
pytest -v -n2 --cov --cov-append
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_allclose(dl["q"], expected_q)
np.testing.assert_almost_equal(dl["q"], expected_q, decimal=5)
assert "RLEN" not in dl.dtype.names
assert "RLEN".ljust(16) not in dl.dtype.names

Expand Down

0 comments on commit 1abbdad

Please sign in to comment.