From e96a667f7ebef8cd0b8fcd9038a3a8399d40d589 Mon Sep 17 00:00:00 2001 From: badrogger Date: Mon, 18 Nov 2024 13:10:25 +0000 Subject: [PATCH] Fix tests --- .github/workflows/publish.yml | 9 +++++---- .github/workflows/test.yml | 6 +++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b1ec5612..abdf44a9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,6 +26,7 @@ jobs: - name: Checkout submodules run: git submodule update --init + - name: Install ubuntu dependencies run: | sudo apt-get update @@ -68,7 +69,7 @@ jobs: strategy: matrix: include: - - os: ubuntu-20.04 + - os: ubuntu-22.04 asset_name: skale-${{ needs.create_release.outputs.version }}-Linux-x86_64 steps: - uses: actions/checkout@v2 @@ -78,7 +79,7 @@ jobs: python-version: 3.11 - name: Install ubuntu dependencies - if: matrix.os == 'ubuntu-20.04' + if: matrix.os == 'ubuntu-22.04' run: | sudo apt-get update @@ -127,7 +128,7 @@ jobs: strategy: matrix: include: - - os: ubuntu-20.04 + - os: ubuntu-22.04 asset_name: skale-${{ needs.create_release.outputs.version }}-Linux-x86_64-sync steps: - uses: actions/checkout@v2 @@ -137,7 +138,7 @@ jobs: python-version: 3.11 - name: Install ubuntu dependencies - if: matrix.os == 'ubuntu-20.04' + if: matrix.os == 'ubuntu-22.04' run: | sudo apt-get update diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6dcd06da..85bd73b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,11 +32,15 @@ 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 . - - name: Build binary - sync + - name: Build binary - normal run: | mkdir -p ./dist docker build . -t node-cli-builder