added CI pipeline (#2)

* Create pythonapp.yml

* Update pythonapp.yml

* fixing up flake8/black

* Update pythonapp.yml

* testing addition of tests

* testing masscan install

* testing pipenv install

* test install command done?

* first set of tests complete
This commit is contained in:
epi052
2020-01-25 20:39:27 -06:00
committed by GitHub
parent 82653674dd
commit 61de5801aa
13 changed files with 10421 additions and 47 deletions

51
.github/workflows/pythonapp.yml vendored Normal file
View File

@@ -0,0 +1,51 @@
name: recon-pipeline build
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Set up pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv install -d
- name: Lint with flake8
run: |
pipenv install flake8
# stop the build if there are Python syntax errors or undefined names
pipenv run flake8 . --count
- name: Check code formatting with black
uses: lgeiger/black-action@master
with:
args: ". --check"
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Golang
uses: actions/setup-go@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Set up pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv install -d
- name: Test with pytest
run: |
pipenv install pytest
pipenv run python -m pytest tests/