From 0219be1b839e76338ce26c3caf64a21806eed2df Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Fri, 29 Mar 2024 09:54:16 -0500 Subject: [PATCH 1/2] Switch to ros-infrastructure centralized CI --- .github/workflows/ci.yaml | 39 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 724c42f..d00a4be 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,31 +1,18 @@ -name: rospkg-ci +--- +name: Run tests -on: +on: # yamllint disable-line rule:truthy push: - branches: [master] + branches: ['master'] pull_request: jobs: - build: - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] - include: - - os: ubuntu-20.04 - python: '3.6' - name: rospkg tests - runs-on: ${{matrix.os}} - - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{matrix.python}} - uses: actions/setup-python@v2 - with: - python-version: ${{matrix.python}} - - name: Install dependencies - run: | - python -m pip install -U -e .[test] pytest-cov -c constraints.txt - - name: Run tests - run: | - python -m pytest --cov test + pytest: + uses: ros-infrastructure/ci/.github/workflows/pytest.yaml@main + with: + matrix-filter: del(.matrix.os[] | select(contains("windows"))) + yamllint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: yamllint -f github . From ccb350a2c076fb7acca6bfd7fd9c01d456ad7c0d Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Fri, 29 Mar 2024 09:58:54 -0500 Subject: [PATCH 2/2] Fix some yamllint deviations --- rosdoc.yaml | 5 +++-- test/stack_tests/s2/baz/stack.yaml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rosdoc.yaml b/rosdoc.yaml index d21d73a..fea7ba9 100644 --- a/rosdoc.yaml +++ b/rosdoc.yaml @@ -1,2 +1,3 @@ - - builder: sphinx - sphinx_root_dir: doc +--- +- builder: sphinx + sphinx_root_dir: doc diff --git a/test/stack_tests/s2/baz/stack.yaml b/test/stack_tests/s2/baz/stack.yaml index 1f18bd9..ee4038e 100644 --- a/test/stack_tests/s2/baz/stack.yaml +++ b/test/stack_tests/s2/baz/stack.yaml @@ -1,8 +1,9 @@ +--- Catkin-ProjectName: baz Version: 1.7.3-yaml Depends: catkin, rospack Description: baz -Author: No One +Author: No One Maintainer: No One Homepage: http://www.ros.org