Skip to content

Commit

Permalink
Add emulation support for Pluto and GithubAction
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Oct 19, 2021
1 parent e23b8d5 commit 6c2636c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,36 @@ jobs:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: coveralls

Test-Emulate:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
bash ./.github/scripts/install_libiio.sh
bash ./.github/scripts/install_iioemu.sh
bash ./.github/scripts/install_pydeps.sh
sudo pip install git+https://github.com/tfcollins/pytest-libiio.git@dev-mock
- name: Test
run: pytest -k "not stress and not dds and not sfdr and not overflow and not underflow" -v --scan-verbose --adi-hw-map --emu --emu-xml=pluto.xml

# - name: Report coverage
# if: matrix.python-version == 3.6
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# run: coveralls

Lint:
runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion test/test_pluto_p.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

hardware = ["pluto", "adrv9361", "fmcomms2"]
hardware = ["pluto", "adrv9361", "fmcomms2", "pluto_rev_c"]
classname = "adi.Pluto"


Expand Down

0 comments on commit 6c2636c

Please sign in to comment.