Fix Sherlock Test Workflow. Remove Travis CI, and update badge.

pull/603/head
Christopher K. Hoadley 5 years ago
parent c1857ec508
commit 606eb20f7c

@ -1,7 +1,4 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Sherlock Test
name: Tests
on:
push:
@ -28,13 +25,13 @@ jobs:
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
working-directory: sherlock
- name: Lint with flake8
- name: Lint With flake8
run: |
# stop the build if there are Python syntax errors or undefined names
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: Sherlock Site Coverage Tests
- name: Sherlock Site Detect Tests
run: |
python -m unittest tests.all.SherlockSiteCoverageTests --verbose
cd sherlock && python -m unittest tests.all.SherlockDetectTests --verbose

@ -1,32 +0,0 @@
group: travis_latest
language: python
cache: pip
matrix:
allow_failures:
- python: nightly
- name: "Sherlock Site Coverage Tests"
fast_finish: true
include:
- python: 3.6
- python: 3.7
- python: 3.8
- python: nightly
- python: 3.7
before_script: true # override the flake8 tests
name: "Sherlock Site Coverage Tests"
script: python -m unittest tests.all.SherlockSiteCoverageTests --verbose
before_install:
# Go into the Sherlock module directory.
- cd sherlock
install:
- pip install flake8 -r ../requirements.txt
before_script:
# stop the build if there are Python syntax errors or undefined names
- 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
script:
- python -m unittest tests.all.SherlockDetectTests --verbose || true
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down

@ -7,7 +7,7 @@
<br>
<a target="_blank" href="https://www.python.org/downloads/" title="Python version"><img src="https://img.shields.io/badge/python-%3E=_3.6-green.svg"></a>
<a target="_blank" href="LICENSE" title="License: MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg"></a>
<a target="_blank" href="https://travis-ci.com/TheYahya/sherlock/" title="Build Status"><img src="https://travis-ci.com/TheYahya/sherlock.svg?branch=master"></a>
<a target="_blank" href="https://github.com/sherlock-project/sherlock/actions" title="Test Status"><img src="https://github.com/sherlock-project/sherlock/workflows/Tests/badge.svg?branch=master"></a>
<a target="_blank" href="https://twitter.com/intent/tweet?text=%F0%9F%94%8E%20Find%20usernames%20across%20social%20networks%20&url=https://github.com/sherlock-project/sherlock&hashtags=hacking,%20osint,%20bugbounty,%20reconnaissance" title="Share on Tweeter"><img src="https://img.shields.io/twitter/url/http/shields.io.svg?style=social"></a>
<a target="_blank" href="http://sherlock-project.github.io/"><img alt="Website" src="https://img.shields.io/website-up-down-green-red/http/sherlock-project.github.io/..svg"></a>
<a target="_blank" href="https://microbadger.com/images/theyahya/sherlock"><img alt="docker image" src="https://images.microbadger.com/badges/version/theyahya/sherlock.svg"></a>

Loading…
Cancel
Save