Skip to content

Commit

Permalink
Add libad9361 and libad9166 to CI
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Jul 11, 2022
1 parent 8119146 commit 42de173
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/scripts/install_part_libs.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ scapy
scipy
pytest-cov
coveralls
pytest-libiio==0.0.12
pytest-libiio==0.0.13
bump2version
pytest-html
plotly-express
Expand Down

0 comments on commit 42de173

Please sign in to comment.