Commit 54093096 by Jörg Stucke

added github action + config files + refactoring

parent 5afde9dd
name: Run Tests
on: [pull_request]
jobs:
tests:
strategy:
matrix:
python-version: [3.6, 3.9]
os: [ubuntu-18.04, ubuntu-20.04]
fail-fast: false
runs-on: ${{ matrix.os }}
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 deps
run: |
python3 -m pip install -U pip
python3 -m pip install --editable .[dev]
- name: install yara
run: sudo apt-get install yara
- name: run pytest
run: pytest
__pycache__ *.egg-info/*
*.pyc
.cache
.coverage
.idea
.project .project
.pydevproject .pydevproject
*.pyc __pycache__
build/* build/*
dist/* dist/*
*.egg-info/*
.cache
...@@ -11,7 +11,7 @@ logger = logging.getLogger('CommonAnalysisIPAndURIFinder') ...@@ -11,7 +11,7 @@ logger = logging.getLogger('CommonAnalysisIPAndURIFinder')
logger.setLevel(logging.INFO) logger.setLevel(logging.INFO)
system_version = "0.4.1" system_version = "0.4.2"
class FinderBase: class FinderBase:
......
[pytest] [pytest]
addopts = --pep8 -v addopts = --pycodestyle --cov=./ -v
pep8ignore =
*.py E501
[pycodestyle]
ignore = E501,W503
select = E504
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment