Skip to content

Commit

Permalink
Building in docker (ros#335)
Browse files Browse the repository at this point in the history
* runs on container
* all on ubuntu latest
* pydocstyle fix is obsolete
* no uncrustify for noble

---------

Signed-off-by: Christian Henkel <[email protected]>
  • Loading branch information
ct2034 authored Mar 28, 2024
1 parent 194753a commit 8ee5640
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uncrustify,
xmllint,
]
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
env:
AMENT_CPPCHECK_ALLOW_SLOW_VERSIONS: 1
steps:
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,19 @@ jobs:
distro: [humble, iron, rolling]
include:
- distro: humble
os: ubuntu-22.04
os: 22.04
- distro: iron
os: ubuntu-22.04
os: 22.04
- distro: rolling
os: ubuntu-22.04
runs-on: ${{ matrix.os }}
os: 24.04
runs-on: ubuntu-latest
container: ubuntu:${{ matrix.os }}
steps:
- uses: ros-tooling/setup-ros@master
- run: |
sudo pip install pydocstyle==6.1.1 # downgrade to fix https://github.com/ament/ament_lint/pull/428
sudo pip install pip --upgrade
sudo pip install pyopenssl --upgrade # fix for AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
# - run: |
# sudo apt install -y python3-pip
# pip3 install --break-system-packages 'flake8<5' # fix flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "pycodestyle" due to cannot import name 'missing_whitespace_around_operator' from 'pycodestyle' (/usr/lib/python3/dist-packages/pycodestyle.py).
# if: ${{ matrix.os == '24.04' }}
- uses: ros-tooling/action-ros-ci@master
with:
target-ros2-distro: ${{ matrix.distro }}
Expand Down
4 changes: 4 additions & 0 deletions self_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ if(BUILD_TESTING)
set(ament_cmake_copyright_FOUND TRUE)
ament_lint_auto_find_test_dependencies()

list(APPEND AMENT_LINT_AUTO_EXCLUDE
ament_cmake_uncrustify # Inconsistent between jammy and noble
)

add_subdirectory(test)
endif()

Expand Down

0 comments on commit 8ee5640

Please sign in to comment.