Skip to content

Update snare (#328) #42

Update snare (#328)

Update snare (#328) #42

Workflow file for this run

name: Unit and integration tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [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: |
python -m pip install --upgrade pip
pip install black nose coveralls
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with black
run: |
black . --line-length 120
- name: Test with nose
run: |
nosetests -w snare/tests -v --with-coverage --cover-inclusive --cover-package=snare
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github