Поправил админку #734
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: Pytest | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install apt package | |
run: | | |
sudo apt-get update \ | |
&& sudo apt-get install -y --no-install-recommends \ | |
ifupdown \ | |
iproute2 \ | |
iptables \ | |
traceroute \ | |
curl \ | |
dnsutils \ | |
netcat-openbsd \ | |
openssh-client \ | |
iputils-ping \ | |
mininet \ | |
net-tools \ | |
bridge-utils \ | |
tcpdump \ | |
gcc \ | |
make \ | |
libpcap-dev \ | |
libbsd-dev \ | |
git | |
sudo touch /etc/network/interfaces | |
sudo mkdir -p /opt/mininet_dependencies | |
- name: Build mimidump | |
run: | | |
git clone https://github.com/mimi-net/mimidump.git | |
cd mimidump && sudo make prefix=/usr install | |
- name: Disable packet transmission to filters | |
run: | | |
sudo sysctl -w net.bridge.bridge-nf-call-iptables=0 | |
sudo sysctl -w net.bridge.bridge-nf-call-arptables=0 | |
sudo sysctl -w net.bridge.bridge-nf-call-ip6tables=0 | |
sudo sysctl -p | |
- name: Install dependencies | |
run: | | |
sudo python -m pip install pip | |
sudo python -m pip install wheel | |
sudo python -m pip install -r back/requirements.txt | |
- name: Test with pytest | |
run: | | |
sudo python -m pip install pytest | |
cd back/src | |
sudo python -m pytest -vv . |