mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
mavsdk SITL testing code coverage and upload to codecov.io
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user