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 6a6c6ea
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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: Install dependencies
run: |
apt update
apt install -y lcov
- 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 6a6c6ea

Please sign in to comment.