SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Tests: Add .github/workflows/test.yaml (#1200)
bcoles5c4b97578cfd
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yamlnew file mode 100644index 00000000..fff03332--- /dev/null+++ b/.github/workflows/test.yaml@@ -0,0 +1,40 @@+name: Python package++on:+ push:+ branches: master+ pull_request:+ branches: master++jobs:+ build:++ runs-on: ${{ matrix.os }+ strategy:+ matrix:+ python-version: [3.6, 3.7, 3.8, 3.9]+ os: [ubuntu-latest, macos-latest, windows-latest]++ steps:+ - uses: actions/checkout@v2+ - name: Set up Python ${{ matrix.python-version }}+ uses: actions/setup-python@v2+ with:+ python-version: ${{ matrix.python-version }}+ - name: Install dependencies+ run: |+ python -m pip install --upgrade pip+ pip install flake8 pytest+ if [ -f test/requirements.txt ]; then pip install -r test/requirements.txt; fi+ - 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+ flake8 . --count --exit-zero --max-complexity=10 --statistics+ - name: Test with pytest+ run: |+ python -m pytest --flake8 -n auto --dist loadfile --durations=5 --cov-report term --cov=. .+ - uses: codecov/codecov-action@v1+ with:+ fail_ci_if_error: true+ verbose: true