Skip to content

Commit

Permalink
TST: Update contour test limits
Browse files Browse the repository at this point in the history
This update the contour test limits due to changed contouring with
closed paths in Matplotlib 3.5.

Additionally updates the Continuous Integration package to make
sure we get proj>=8 and add color to the output.
  • Loading branch information
greglucas committed Nov 20, 2021
1 parent ecc3f05 commit 579be04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Latest packages
if: steps.minimum-packages.conclusion == 'skipped'
run: |
echo "PACKAGES=cython fiona matplotlib-base numpy pyproj pykdtree scipy shapely" >> $GITHUB_ENV
echo "PACKAGES=cython fiona matplotlib-base numpy pyproj 'proj>=8' pykdtree scipy shapely" >> $GITHUB_ENV
- name: Coverage packages
id: coverage
Expand Down Expand Up @@ -71,6 +71,7 @@ jobs:
python tools/cartopy_feature_download.py gshhs physical --dry-run
CARTOPY_GIT_DIR=$PWD
PYPROJ_GLOBAL_CONTEXT=ON pytest -ra -n 4 --doctest-modules \
--color=yes \
--mpl --mpl-generate-summary=html \
--mpl-results-path="cartopy_test_output-${{ matrix.os }}-${{ matrix.python-version }}" \
--pyargs cartopy ${EXTRA_TEST_ARGS}
Expand Down
4 changes: 2 additions & 2 deletions lib/cartopy/tests/mpl/test_mpl_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(filename='global_contour_wrap.png',
style='mpl20')
style='mpl20', tolerance=2.25)
def test_global_contour_wrap_new_transform():
ax = plt.axes(projection=ccrs.PlateCarree())
ax.coastlines()
Expand All @@ -30,7 +30,7 @@ def test_global_contour_wrap_new_transform():

@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(filename='global_contour_wrap.png',
style='mpl20')
style='mpl20', tolerance=2.25)
def test_global_contour_wrap_no_transform():
ax = plt.axes(projection=ccrs.PlateCarree())
ax.coastlines()
Expand Down

0 comments on commit 579be04

Please sign in to comment.