Skip to content

Commit

Permalink
Let CI run without scikit-image
Browse files Browse the repository at this point in the history
by skipping test_wfc_findsat_mrt and test_wfc_satdet
  • Loading branch information
pllim committed Dec 8, 2023
1 parent 2502165 commit 8a8c391
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acstools/tests/test_wfc_findsat_mrt.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
'''Test satellite trail detection and masking using findsat_mrt.'''
import os

import pytest
from astropy.io.fits import FITSDiff
from astropy.utils.data import get_pkg_data_filename

from acstools.findsat_mrt import WfcWrapper

pytest.importorskip("skimage")


def test_WfcWrapper(tmp_path):
"""Identify and mask trails in WFC extension 4."""
Expand Down
4 changes: 4 additions & 0 deletions acstools/tests/test_wfc_satdet.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
.. note:: Cannot test ``detsat()`` because PHT results change from run to run!
"""
import pytest

from acstools import satdet
from acstools.utils_findsat_mrt import update_dq
from acstools.tests.helpers import BaseACSTOOLS

pytest.importorskip("skimage")


class TestSatDet(BaseACSTOOLS):
detector = 'wfc'
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ filterwarnings =
# Ignore numpy 2.0 warning, see https://github.com/astropy/astropy/pull/15495
# and https://github.com/scipy/scipy/pull/19275
ignore:.*numpy\.core.*:DeprecationWarning
# Do not let broken scikit-image block the rest of test suite
ignore:skimage not installed

[flake8]
# Ignoring these for now:
Expand Down

0 comments on commit 8a8c391

Please sign in to comment.