diff --git a/.github/scripts/install_part_libs.sh b/.github/scripts/install_part_libs.sh new file mode 100755 index 000000000..5109bb93a --- /dev/null +++ b/.github/scripts/install_part_libs.sh @@ -0,0 +1,26 @@ +#!/bin/bash +git clone -b 'master' --single-branch --depth 1 https://github.com/analogdevicesinc/libad9361-iio.git +cd libad9361-iio +cmake -DPYTHON_BINDINGS=ON . +make +cd bindings/python +pip install . +cd ../.. +sudo make install +sudo ldconfig +cd .. +rm -rf libad9361-iio + +git clone -b 'master' --single-branch --depth 1 https://github.com/analogdevicesinc/libad9166-iio.git +cd libad9166-iio +cmake -DPYTHON_BINDINGS=ON . +make +cd bindings/python +pip install . +cd ../.. +sudo make install +sudo ldconfig +cd .. +rm -rf libad9166-iio + +pip install pylibiio==0.23.1 diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 36a32b674..c09c03094 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -16,6 +16,7 @@ jobs: - name: Install dependencies run: | bash ./.github/scripts/install_libiio.sh + bash ./.github/scripts/install_part_libs.sh bash ./.github/scripts/install_pydeps.sh pip install -r requirements_doc.txt @@ -57,6 +58,7 @@ jobs: - name: Install dependencies run: | bash ./.github/scripts/install_libiio.sh + bash ./.github/scripts/install_part_libs.sh bash ./.github/scripts/install_pydeps.sh pip install -r requirements_doc.txt pip install invoke diff --git a/.github/workflows/test-pypi.yml b/.github/workflows/test-pypi.yml index 39be7c644..a061968ca 100644 --- a/.github/workflows/test-pypi.yml +++ b/.github/workflows/test-pypi.yml @@ -17,6 +17,7 @@ jobs: - name: Install dependencies run: | bash ./.github/scripts/install_libiio.sh + bash ./.github/scripts/install_part_libs.sh bash ./.github/scripts/install_pydeps.sh pip install -r requirements_doc.txt pip install setuptools wheel twine build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f0b3d2e95..3edfac5fe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,6 +20,7 @@ jobs: run: | bash ./.github/scripts/install_libiio.sh bash ./.github/scripts/install_pydeps.sh + bash ./.github/scripts/install_part_libs.sh - name: Test run: pytest -v --cov=adi @@ -41,6 +42,7 @@ jobs: - name: Install dependencies run: | bash ./.github/scripts/install_libiio.sh + bash ./.github/scripts/install_part_libs.sh bash ./.github/scripts/install_iioemu.sh bash ./.github/scripts/install_pydeps.sh sudo apt install -y python3-tk @@ -84,6 +86,7 @@ jobs: - name: Install dependencies run: | bash ./.github/scripts/install_libiio.sh + bash ./.github/scripts/install_part_libs.sh bash ./.github/scripts/install_pydeps.sh - name: Lint @@ -106,6 +109,7 @@ jobs: - name: Install dependencies run: | bash ./.github/scripts/install_libiio.sh + bash ./.github/scripts/install_part_libs.sh bash ./.github/scripts/install_pydeps.sh pip install -r requirements_doc.txt @@ -129,6 +133,7 @@ jobs: - name: Install dependencies run: | bash ./.github/scripts/install_libiio.sh + bash ./.github/scripts/install_part_libs.sh bash ./.github/scripts/install_pydeps.sh pip install -r requirements_doc.txt @@ -159,6 +164,7 @@ jobs: - name: Install dependencies run: | bash ./.github/scripts/install_libiio.sh + bash ./.github/scripts/install_part_libs.sh bash ./.github/scripts/install_pydeps.sh pip install -r requirements_doc.txt pip install setuptools wheel twine build diff --git a/requirements_dev.txt b/requirements_dev.txt index 7c716b4fb..9d79ed62e 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -8,7 +8,7 @@ scapy scipy pytest-cov coveralls -pytest-libiio==0.0.12 +pytest-libiio==0.0.13 bump2version pytest-html plotly-express