@@ -3,7 +3,7 @@ on: [push, pull_request]
33
44jobs :
55 test :
6- runs-on : ubuntu-20 .04
6+ runs-on : ubuntu-22 .04
77 strategy :
88 matrix :
99 python-version : [3.11]
@@ -23,20 +23,18 @@ jobs:
2323 - name : Install ubuntu dependencies
2424 run : |
2525 sudo apt-get update
26- sudo apt-get install python-setuptools iptables
26+ sudo apt-get install iptables nftables python3-nftables
2727
2828 - name : Install python dependencies
2929 run : |
3030 python -m pip install --upgrade pip
31- pip install -e .
3231 pip install -e .[dev]
33- pip install --upgrade 'setuptools<45.0.0'
3432
3533 - name : Lint with flake8
3634 run : |
3735 flake8 .
3836
39- - name : Build binary in Ubuntu 18.04 environment - normal
37+ - name : Build binary - normal
4038 run : |
4139 mkdir -p ./dist
4240 docker build . -t node-cli-builder
4644 - name : Check build - normal
4745 run : sudo /home/ubuntu/dist/skale-test-Linux-x86_64
4846
49- - name : Build binary in Ubuntu 20.04 environment - normal
50- run : |
51- scripts/build.sh test test normal
52-
53- - name : Check build - sync
54- run : sudo /home/ubuntu/dist/skale-test-Linux-x86_64
55- - name : Build sync binary in Ubuntu 18.04 environment
47+ - name : Build binary - sync
5648 run : |
5749 mkdir -p ./dist
5850 docker build . -t node-cli-builder
@@ -62,12 +54,15 @@ jobs:
6254 - name : Check build - sync
6355 run : sudo /home/ubuntu/dist/skale-test-Linux-x86_64-sync
6456
65- - name : Build sync binary in Ubuntu 20.04 environment
57+ - name : Run prepare test build
6658 run : |
67- scripts/build.sh test test sync
68-
69- - name : Check build - sync
70- run : sudo /home/ubuntu/dist/skale-test-Linux-x86_64-sync
59+ scripts/build.sh test test normal
7160
7261 - name : Run tests
73- run : bash ./scripts/run_tests.sh
62+ run : |
63+ export PYTHONPATH=${PYTHONPATH}:/usr/lib/python3/dist-packages/
64+ bash ./scripts/run_tests.sh
65+
66+ - name : Run nftables tests
67+ run : |
68+ scripts/run_nftables_test.sh
0 commit comments