Repository: pysal/pointpats (language: python)

Issue:
Move testing to github actions
Follow [libpysal](https://github.com/pysal/libpysal/tree/master/.github)


Discussion / hints:
I can try to get to this tomorrow.

Fix patch:
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000..91f3800
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,30 @@
+# .coveragerc to control coverage.py
+[run]
+branch = True
+source = pointpats
+
+[report]
+# Regexes for lines to exclude from consideration
+exclude_lines =
+    # Have to re-enable the standard pragma
+    pragma: no cover
+
+    # Don't complain about missing debug-only code:
+    def __repr__
+    if self\.debug
+
+    # Don't complain if tests don't hit defensive assertion code:
+    raise AssertionError
+    raise NotImplementedError
+
+    # Don't complain if non-runnable code isn't run:
+    if 0:
+    if __name__ == .__main__.:
+
+ignore_errors = True
+omit =
+    */tests/*
+    *__init__.py
+
+[html]
+directory = coverage_html_report
diff --git a/README.md b/README.md
index 0301da2..bb68327 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-pointpats: Point Pattern Analysis in PySAL
-==========================================
+# pointpats: Point Pattern Analysis in PySAL
 
-[![image](https://api.travis-ci.org/pysal/pointpats.svg)](https://travis-ci.org/pysal/pointpats)
+[![Continuous Integration](https://github.com/pysal/pointpats/actions/workflows/tests.yml/badge.svg)](https://github.com/pysal/pointpats/actions/workflows/tests.yml)
+[![codecov](https://codecov.io/gh/pysal/pointpats/branch/master/graph/badge.svg)](https://codecov.io/gh/pysal/pointpats)
 [![Documentation Status](https://readthedocs.org/projects/pointpats/badge/?version=latest)](https://pointpats.readthedocs.io/en/latest/?badge=latest)
 [![PyPI version](https://badge.fury.io/py/pointpats.svg)](https://badge.fury.io/py/pointpats)
 [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3265637.svg)](https://doi.org/10.5281/zenodo.3265637)
@@ -10,8 +10,7 @@ Statistical analysis of planar point patterns.
 
 This package is part of [PySAL](https://pysal.org): The Python Spatial Analysis Library.
 
-Introduction
-------------
+## Introduction
 
 This [pointpats](https://github.com/pysal/pointpats) package is intended
 to support the statistical analysis of planar point patterns.
@@ -20,14 +19,12 @@ It currently works on cartesian coordinates. Users with data in
 geographic coordinates need to project their data prior to using this
 module.
 
-Documentation
--------------
+## Documentation
 
 Online documentation is available
 [here](https://pointpats.readthedocs.io).
 
-Examples
---------
+## Examples
 
 -   [Basic point pattern
     structure](https://github.com/pysal/pointpats/tree/master/notebooks/pointpattern.ipynb)
@@ -39,15 +36,13 @@ Examples
 -   [Distance based
     statistics](https://github.com/pysal/pointpats/tree/master/notebooks/distance_statistics-numpy-oriented.ipynb)
 
-Installation
-------------
+##  Installation
 
 Install pointpats by running:
 
     $ pip install pointpats
 
-Development
------------
+## Development
 
 pointpats development is hosted on
 [github](https://github.com/pysal/pointpats).
@@ -55,14 +50,12 @@ pointpats development is hosted on
 As part of the PySAL project, pointpats development follows these
 [guidelines](http://pysal.org/getting_started).
 
-Bug reports
------------
+##  Bug reports
 
 To search for or report bugs, please see pointpats'
 [issues](https://github.com/pysal/pointpats/issues).
 
-BibTeX Citation
----------------
+##  BibTeX Citation
 
 ```
 @misc{sergio_rey_2019_3265637,
diff --git a/requirements.txt b/requirements.txt
index 861fc4b..f8a3d9e 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,4 +2,4 @@ scipy>=0.11
 numpy>=1.3
 pandas
 matplotlib
-libpysal>=4.0.0
\ No newline at end of file
+libpysal>=4.0.0
diff --git a/requirements_docs.txt b/requirements_docs.txt
index 12f8d14..e32acb5 100644
--- a/requirements_docs.txt
+++ b/requirements_docs.txt
@@ -1,6 +1,3 @@
 sphinx
 sphinxcontrib-bibtex==2.2.0
 sphinx_bootstrap_theme
-numpydoc
-nbsphinx
-matplotlib


Test patch:
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index ec9e6b9..394915e 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -46,7 +46,7 @@ jobs:
 
       - name: Test pointpats
         run: |
-          pytest -v --color yes --cov pointpats --cov-append --cov-report term-missing --cov-report xml .
+          pytest -v --color yes --cov pointpats --cov-config .coveragerc --cov-append --cov-report term-missing --cov-report xml .
 
       - uses: codecov/codecov-action@v3