mirror of
https://github.com/aljazceru/recon-pipeline.git
synced 2026-01-09 17:34:25 +01:00
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:
51
.github/workflows/pythonapp.yml
vendored
Normal file
51
.github/workflows/pythonapp.yml
vendored
Normal 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/
|
||||
Reference in New Issue
Block a user