Skip to content

Cleanup and config helper script #9

Cleanup and config helper script

Cleanup and config helper script #9

Workflow file for this run

name: Run tests
on:
pull_request_target:
types:
- closed
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Create config.ini
run: |
echo "[shodan]" > config.ini
echo "api_key = ${{ secrets.shodan_api_key }}" >> config.ini
echo "[virustotal]" >> config.ini
echo "api_key = ${{ secrets.virustotal_api_key }}" >> config.ini
echo "[emailrep]" >> config.ini
echo "api_key = ${{ secrets.emailrep_api_key }}" >> config.ini
echo "[abuseipdb]" >> config.ini
echo "api_key = ${{ secrets.abuseipdb_api_key }}" >> config.ini
echo "[greynoise]" >> config.ini
echo "api_key = ${{ secrets.greynoise_api_key }}" >> config.ini
echo "[threatfox]" >> config.ini
echo "api_key = ${{ secrets.threatfox_api_key }}" >> config.ini
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Pytest
run: |
pytest -vv