Skip to content

Commit

Permalink
Fix tests on actions (#115)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed Jul 31, 2020
1 parent 7956386 commit 8005d55
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 18 deletions.
10 changes: 10 additions & 0 deletions .github/ci/after_make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh -l

set -x

make install

Xvfb :1 -screen 0 1280x1024x24 &
export DISPLAY=:1.0
export RENDER_ENGINE_VALUES=ogre2
export MESA_GL_VERSION_OVERRIDE=3.3
13 changes: 13 additions & 0 deletions .github/ci/packages.apt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
freeglut3-dev
libfreeimage-dev
libglew-dev
libignition-cmake2-dev
libignition-common3-dev
libignition-math6-dev
libignition-plugin-dev
libogre-1.9-dev
libogre-2.1-dev
libxi-dev
libxmu-dev
uuid-dev
xvfb
17 changes: 0 additions & 17 deletions .github/workflows/ci-bionic.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Ubuntu CI

on: [push]

jobs:
bionic-ci:
runs-on: ubuntu-latest
name: Ubuntu Bionic CI
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compile and test
id: ci
uses: ignition-tooling/action-ignition-ci@master
with:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
focal-ci:
runs-on: ubuntu-latest
name: Ubuntu Focal CI
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compile and test
id: ci
uses: ignition-tooling/action-ignition-ci@focal
with:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion test/integration/depth_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ void DepthCameraTest::DepthCameraBoxes(
for (unsigned int j = 0; j < depthCamera->ImageWidth(); ++j)
{
float x = pointCloudData[step + j*pointCloudChannelCount];
EXPECT_FLOAT_EQ(expectedRange, x);
EXPECT_NEAR(expectedRange, x, DOUBLE_TOL);
}
}

Expand Down

0 comments on commit 8005d55

Please sign in to comment.