-
Notifications
You must be signed in to change notification settings - Fork 27
26 lines (22 loc) · 914 Bytes
/
test.yml
File metadata and controls
26 lines (22 loc) · 914 Bytes
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
name: test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: test
run: |
export DEBIAN_FRONTEND=noninteractive && \
echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections && \
sudo apt-get update && \
sudo apt-get install -yq --no-install-recommends libev-dev python3 python3-dev python3-setuptools dialog apt-utils tshark libpcap0.8 libpcap-dev p0f tcpdump && \
pip3 install -U pip && \
pip3 install pytype pytest-cov && \
find . -name requirements.txt -type f -exec pip3 install -r {} \; && \
export PATH=/home/runner/.local/bin:$PATH && \
make test && \
coverage report && coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.1.4
if: github.repository == 'iqtlabs/network-tools'