From 2f706a958c88fbf340dca084d8a09f2c75087103 Mon Sep 17 00:00:00 2001 From: "Winston R. Milling" Date: Thu, 17 Dec 2020 10:38:51 -0600 Subject: [PATCH] Test out Github Actions We need to replace travis with something else, GitHub actions are here... lets try it! --- .github/workflows/flow.yml | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/flow.yml diff --git a/.github/workflows/flow.yml b/.github/workflows/flow.yml new file mode 100644 index 0000000..046430d --- /dev/null +++ b/.github/workflows/flow.yml @@ -0,0 +1,39 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python package + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.5', '3.6', '3.7', '3.8'] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install coveralls + pip install bandit + pip install -e . + - name: Unit Tests + run: | + py.test -s -v ./tests --capture=sys + - name: Coverage Reports + run: | + coverage run --source flow -m py.test + - name: Bandit Security Tests + run: | + bandit -r -ll -ii -x tests .