Merge pull request #564 from faucetsdn/dependabot/pip/mercury/cryptog… #999
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: 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/[email protected] | |
if: github.repository == 'iqtlabs/network-tools' |