From ecfce621813fd8196aa72658248aefcbaaca58f2 Mon Sep 17 00:00:00 2001 From: Tomas Date: Mon, 27 Apr 2020 22:01:40 +0100 Subject: [PATCH] Add Github Actions --- .github/workflows/build.yml | 38 +++++++++++++++++++ README.rst | 10 +++-- ...ogrammar.py => test_numpy_histogrammar.py} | 0 3 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build.yml rename tests/popmon/hist/{test_numpy_istogrammar.py => test_numpy_histogrammar.py} (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..2af81ff0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.6 + uses: actions/setup-python@v1 + with: + python-version: 3.6 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e . + pip install -r requirements-test.txt + - name: Lint with flake8 + run: | + pip install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pip install pytest + pytest diff --git a/README.rst b/README.rst index 63b58788..0ec81664 100644 --- a/README.rst +++ b/README.rst @@ -2,14 +2,18 @@ Population Shift Monitoring =========================== +.. image:: https://github.com/ing-bank/popmon/workflows/build/badge.svg + * Version: 0.3.1. Released: April 2020 * Documentation: https://popmon.readthedocs.io * Repository: https://github.com/ing-bank/popmon * Authors: ING Wholesale Banking Advanced Analytics -.. figure:: https://github.com/ing-bank/popmon/blob/master/docs/source/assets/popmon-logo.png - :width: 300px - :align: center +.. raw:: html + +
+ popmon logo +
`popmon` is a package that allows one to check the stability of a dataset. `popmon` works with both pandas and spark datasets. diff --git a/tests/popmon/hist/test_numpy_istogrammar.py b/tests/popmon/hist/test_numpy_histogrammar.py similarity index 100% rename from tests/popmon/hist/test_numpy_istogrammar.py rename to tests/popmon/hist/test_numpy_histogrammar.py