Skip to content

Commit

Permalink
Add github action for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <travis.collins@analog.com>
  • Loading branch information
tfcollins committed Nov 30, 2023
1 parent 636f47a commit 2db81f6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Testing

on: [push, pull_request]

jobs:
container-test-job:
runs-on: ubuntu-latest
container:
image: tfcollins/libiio_ubuntu_22_04-ci:latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Build and Test
run: |
mkdir build
cd build
cmake .. -DTESTS=ON -DTESTS_DEBUG=ON -DTESTS_COVERAGE=ON
make coverage
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: ./build/coverage.xml
# flags: unittests

0 comments on commit 2db81f6

Please sign in to comment.