From f1f9e6d98e86d4661ed224e158e25cb079bb1e9c Mon Sep 17 00:00:00 2001 From: Wiktor Bajor Date: Tue, 6 Aug 2024 17:25:43 +0000 Subject: [PATCH] Add workflow for rolling --- .github/workflows/build_and_test_rolling.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/build_and_test_rolling.yaml diff --git a/.github/workflows/build_and_test_rolling.yaml b/.github/workflows/build_and_test_rolling.yaml new file mode 100644 index 0000000..b1a9ae5 --- /dev/null +++ b/.github/workflows/build_and_test_rolling.yaml @@ -0,0 +1,55 @@ +--- +name: Build and Test (rolling) + +on: + push: + branches: [rolling] + + pull_request: + branches: [rolling] + + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ubuntu:noble + + steps: + - uses: ros-tooling/setup-ros@v0.7 + with: + use-ros2-testing: true + - uses: ros-tooling/action-ros-ci@v0.3 + with: + target-ros2-distro: rolling + + ament_lint_general: + name: ament_${{ matrix.linter }} + runs-on: ubuntu-latest + container: + image: rostooling/setup-ros-docker:ubuntu-noble-ros-rolling-ros-base-latest + strategy: + fail-fast: false + matrix: + linter: [xmllint, pep257] + steps: + - uses: actions/checkout@v4 + - uses: ros-tooling/action-ros-lint@v0.1 + with: + linter: ${{ matrix.linter }} + distribution: rolling + package-name: human_detector + ament_flake8: + name: ament_flake8 + runs-on: ubuntu-latest + container: + image: rostooling/setup-ros-docker:ubuntu-noble-ros-rolling-ros-base-latest + steps: + - uses: actions/checkout@v4 + - uses: ros-tooling/action-ros-lint@v0.1 + with: + linter: flake8 + distribution: rolling + package-name: human_detector + arguments: --config python_linter.flake8