Skip to content

Commit

Permalink
Add GitHub CI config
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <[email protected]>
  • Loading branch information
christophebedard committed Jun 28, 2020
1 parent 1fa9011 commit 8cc759d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
# - uses: actions/checkout@v2
# - uses: ros-tooling/[email protected]
- uses: christophebedard/setup-ros@install-colcon-coveragepy-result
- name: Install LTTng
run: |
sudo apt-add-repository -y ppa:lttng/ppa
sudo apt-get update
sudo apt-get install -q -y lttng-tools liblttng-ust-dev python3-lttng python3-babeltrace python3-pandas
# - uses: ros-tooling/[email protected]
- uses: christophebedard/action-ros-ci@238-collect-all-python-coverage-data
with:
package-name: ros2trace tracetools tracetools_launch tracetools_read tracetools_test tracetools_trace
colcon-mixin-name: coverage-gcc coverage-pytest
- run: |
sudo dpkg -l | grep pytest-cov
dpkg -l | grep pytest-cov
sudo pip3 list | grep pytest-cov
pip3 list | grep pytest-cov
sudo python3 -m pytest --version
python3 -m pytest --version
pwd
ls -al
sudo python3 -m pytest --version > out 2>error
cat out
echo "sep"
cat error
ls -al ../codecov.yml && cp ../codecov.yml .
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ros_ws/lcov/total_coverage.info
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ros_ws/coveragepy/.coverage
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
fixes:
- "/builds/micro-ROS/ros_tracing/ros2_tracing/::"
- "/builds/micro-ROS/ros_tracing/ros2_tracing/install/tracetools/::tracetools/"
- "/home/runner/work/ros2_tracing/ros2_tracing/ros_ws/src/ros2_tracing/::"
- "/home/runner/work/ros2_tracing/ros2_tracing/ros_ws/install/tracetools/::tracetools/"

0 comments on commit 8cc759d

Please sign in to comment.