Add desktop dir #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
echo "[pulsedive]" >> config.ini | |
echo "api_key = ${{ secrets.pulsedive_api_key }}" >> config.ini | |
- name: Create Desktop directory | |
run: | | |
mkdir -p ~/Desktop | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run Pytest | |
run: | | |
pytest -vv |