mavsdk SITL testing code coverage and upload to codecov.io

This commit is contained in:
Daniel Agar
2019-12-26 12:36:24 -05:00
parent 2120c87d1e
commit 30a73416dc
6 changed files with 39 additions and 7 deletions
+23
View File
@@ -0,0 +1,23 @@
name: SITL Tests (Code Coverage)
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container: px4io/px4-dev-simulation-bionic:2019-12-18
steps:
- uses: actions/checkout@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
- name: Set Python 3 as default
run: update-alternatives --install /usr/bin/python python /usr/bin/python3 10
- name: Install psutil
run: pip3 install psutil
- name: Run simulation tests
run: make tests_integration_coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: mavsdk