-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (44 loc) · 1.5 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
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
# used for --export test
run: |
mkdir -p ~/Desktop
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies with Poetry
run: |
poetry install
- name: Run Pytest with Poetry
run: |
poetry run pytest -vv