astropy / pyregion

ds9 region parser for python
https://pyregion.readthedocs.io
MIT License
39 stars 38 forks source link

Use GitHub actions for pytest and remove appveyor #155

Closed prajwel closed 1 year ago

prajwel commented 1 year ago

Replaces Appveyor CI with GitHub actions. Due to the following error, I had to comment function test_region in test_get_mask.py. Python 2.7 was removed from testing, and only Python 3.5 is present.

=================================== FAILURES ===================================
_________________________________ test_region __________________________________

    def test_region():
        ref_name = "test01_img.reg"
        header = demo_header()

        ref_region = pyregion_open(join(rootdir, ref_name)).as_imagecoord(header)
>       mask = ref_region.get_mask(shape=(100, 100))

pyregion/tests/test_get_mask.py:19: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pyregion/core.py:155: in get_mask
    region_filter = self.get_filter(header=header)
pyregion/core.py:113: in get_filter
    from .region_to_filter import as_region_filter
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    import numpy as np
>   import pyregion._region_filter as region_filter
E   ImportError: No module named 'pyregion._region_filter'

pyregion/region_to_filter.py:2: ImportError