diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 85bd73b5..b3546fc1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,9 @@ name: Test on: [push, pull_request] +env: + PYTHONPATH: ${PYTHONPATH}:/usr/lib/python3/dist-packages/ + jobs: test: runs-on: ubuntu-22.04 @@ -32,10 +35,6 @@ jobs: pip install -e .[dev] pip install --upgrade 'setuptools<45.0.0' - - name: Add nftables to PYTHONPATH - run: | - export PYTHONPATH=${PYTHONPATH}:/usr/lib/python3/dist-packages/ - - name: Lint with flake8 run: | flake8 . @@ -60,5 +59,10 @@ jobs: - name: Check build - sync run: sudo /home/ubuntu/dist/skale-test-Linux-x86_64-sync + - name: Run prepare test build + run: | + scripts/build.sh test test normal + + - name: Run tests run: bash ./scripts/run_tests.sh