Skip to content

Commit

Permalink
Nightly on schedule, use nexus-base for integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Jan 6, 2025
1 parent 3e64587 commit 3d467f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/nexus_integration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
docker_image: ['ros:jazzy-ros-base']
docker_image: ['ghcr.io/osrf/nexus/nexus-base:jazzy-latest']
container:
image: ${{ matrix.docker_image }}
timeout-minutes: 60
steps:
- name: Install deps for Rust
run: |
apt update && apt install -y git curl libclang-dev
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: ~/.cache/ccache
key: ccache
- name: vcs
run: |
vcs import . < abb.repos
vcs import . < rmf.repos
- name: rosdep
run: |
apt update
Expand All @@ -37,8 +30,8 @@ jobs:
rosdep update
rosdep install --from-paths . -yir
- name: build
run: /ros_entrypoint.sh colcon build --packages-up-to nexus_calibration nexus_gazebo nexus_integration_tests nexus_motion_planner --mixin release lld --cmake-args -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
run: . /opt/nexus_base/setup.bash colcon build --packages-up-to nexus_calibration nexus_gazebo nexus_integration_tests nexus_motion_planner --mixin release lld --cmake-args -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
- name: Test - Unit Tests
run: . ./install/setup.bash && RMW_IMPLEMENTATION=rmw_cyclonedds_cpp /ros_entrypoint.sh colcon test --packages-select nexus_motion_planner --event-handlers=console_direct+
run: . ./install/setup.bash && RMW_IMPLEMENTATION=rmw_cyclonedds_cpp colcon test --packages-select nexus_motion_planner --event-handlers=console_direct+
- name: Test - Integration Test
run: . ./install/setup.bash && cd nexus_integration_tests && RMW_IMPLEMENTATION=rmw_cyclonedds_cpp /ros_entrypoint.sh python3 -m unittest
run: . ./install/setup.bash && cd nexus_integration_tests && RMW_IMPLEMENTATION=rmw_cyclonedds_cpp python3 -m unittest
10 changes: 4 additions & 6 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: nightly

# on:
# schedule:
# # 2am SGT
# - cron: '0 18 * * *'

on: [push]
on:
schedule:
# 2am SGT
- cron: '0 18 * * *'

jobs:
build-nexus-base-image:
Expand Down

0 comments on commit 3d467f6

Please sign in to comment.