pythonapp.yml 1019 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Python application
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. branches:
  8. - master
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Set up Python 3.8
  15. uses: actions/setup-python@v1
  16. with:
  17. python-version: 3.8
  18. - name: Install dependencies
  19. run: |
  20. python -m pip install --upgrade pip
  21. pip install -r requirements.txt
  22. - name: Lint with flake8
  23. run: |
  24. pip install flake8
  25. # stop the build if there are Python syntax errors or undefined names
  26. flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
  27. # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
  28. flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
  29. - name: Domainhunter Help
  30. run: |
  31. python domainhunter.py -h
  32. - name: Domainhunter Single Domain Check
  33. run: |
  34. python domainhunter.py -s github.com