-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 939 Bytes
/
pytests.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
name: Run Pytest
on: [push, pull_request]
jobs:
run-pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl gnupg2 iproute2
pip install pytest pytest-testinfra
- name: Install wazuh-agent
run: |
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | sudo apt-key add -
echo "deb https://packages.wazuh.com/4.x/apt/ stable main" | sudo tee /etc/apt/sources.list.d/wazuh.list
sudo apt-get update
sudo apt-get install -y wazuh-agent
- name: Run Snort install script
run: |
sudo bash scripts/install.sh
- name: Run tests
run: |
sudo $(which pytest) -vv scripts/tests/test_install.py