|
@@ -1,6 +1,12 @@
|
|
|
name: Python application
|
|
|
|
|
|
-on: [push]
|
|
|
+on:
|
|
|
+ push:
|
|
|
+ branches:
|
|
|
+ - master
|
|
|
+ pull_request:
|
|
|
+ branches:
|
|
|
+ - master
|
|
|
|
|
|
jobs:
|
|
|
build:
|
|
@@ -24,7 +30,7 @@ jobs:
|
|
|
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
|
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
|
- #- name: Test with pytest
|
|
|
- # run: |
|
|
|
- # pip install pytest
|
|
|
- # pytest
|
|
|
+ - name: Test with pytest
|
|
|
+ run: |
|
|
|
+ python domainhunter.py -h
|
|
|
+ python domainhunter.py -c github.com
|