SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Tests: Enable GitHub test workflow (#1201)
bcolesf015423a4cd1
diff --git a/.github/workflows/test.yaml b/.github/workflows/tests.yamlsimilarity index 84%rename from .github/workflows/test.yamlrename to .github/workflows/tests.yamlindex fff03332..0163f069 100644--- a/.github/workflows/test.yaml+++ b/.github/workflows/tests.yaml@@ -1,4 +1,4 @@-name: Python package+name: Testson:push:@@ -9,11 +9,11 @@ on:jobs:build:- runs-on: ${{ matrix.os }+ runs-on: ${{ matrix.os }}strategy:matrix:python-version: [3.6, 3.7, 3.8, 3.9]- os: [ubuntu-latest, macos-latest, windows-latest]+ os: [ubuntu-latest, macos-latest]steps:- uses: actions/checkout@v2@@ -25,7 +25,7 @@ jobs:run: |python -m pip install --upgrade pippip install flake8 pytest- if [ -f test/requirements.txt ]; then pip install -r test/requirements.txt; fi+ pip install -r test/requirements.txt- name: Lint with flake8run: |# stop the build if there are Python syntax errors or undefined namesdiff --git a/.travis.yml b/.travis.ymldeleted file mode 100644index 0301fd40..00000000--- a/.travis.yml+++ /dev/null@@ -1,23 +0,0 @@-os: linux-dist: xenial-language: python--python:- - "3.6"- - "3.8"- - "3.9"--cache: pip--before_install:- - python --version- - python -m pip install --upgrade pip--install:- - python -m pip install codecov -r test/requirements.txt--script:- - python -m pytest --flake8 -n auto --dist loadfile --durations=5 --cov-report term --cov=. .--after_success:- - bash <(curl -s https://codecov.io/bash)diff --git a/README.md b/README.mdindex f0a93a51..848e180e 100644--- a/README.md+++ b/README.md@@ -4,7 +4,7 @@[](https://raw.githubusercontent.com/smicallef/spiderfoot/master/LICENSE)[](https://www.python.org)[](https://github.com/smicallef/spiderfoot/releases/tag/v3.3)-[](https://travis-ci.com/github/smicallef/spiderfoot)+[](https://github.com/smicallef/spiderfoot/actions?query=workflow%3A"Tests")[](https://github.com/smicallef/spiderfoot/commits/master)[](https://libraries.io/github/smicallef/spiderfoot)[](https://codecov.io/github/smicallef/spiderfoot)diff --git a/test/unit/test_spiderfoot.py b/test/unit/test_spiderfoot.pyindex c73f5a0b..b40265db 100644--- a/test/unit/test_spiderfoot.py+++ b/test/unit/test_spiderfoot.py@@ -850,8 +850,10 @@ class TestSpiderFoot(unittest.TestCase):addrs = sf.resolveHost6('one.one.one.one')self.assertIsInstance(addrs, list)self.assertTrue(addrs)- self.assertIn('2606:4700:4700::1001', addrs)- self.assertIn('2606:4700:4700::1111', addrs)+ # TODO: Re-enable this once GitHub runners support IPv6+ # https://github.com/actions/virtual-environments/issues/668+ # self.assertIn('2606:4700:4700::1001', addrs)+ # self.assertIn('2606:4700:4700::1111', addrs)addrs = sf.resolveHost6(None)self.assertFalse(addrs)