Skip to content

Commit

Permalink
Test out Github Actions
Browse files Browse the repository at this point in the history
We need to replace travis with something else, GitHub actions are here... lets try it!
  • Loading branch information
wrmilling committed Dec 17, 2020
1 parent 90d7512 commit 2f706a9
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/flow.yml
Original file line number Diff line number Diff line change
@@ -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 .

0 comments on commit 2f706a9

Please sign in to comment.