Skip to content

Commit

Permalink
Update CI config
Browse files Browse the repository at this point in the history
- Update action versions to silent deprecation warnings
- Remove Melodic build (eol): vcstool fails to import upstream workspace.
  • Loading branch information
rhaschke committed Sep 13, 2023
1 parent 2cc7bb9 commit d6cea2c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ jobs:
fail-fast: false
matrix:
env:
- IMAGE: melodic
CCOV: true
CATKIN_LINT: true
UPSTREAM_WORKSPACE: github:PickNikRobotics/rviz_visual_tools#master
- IMAGE: noetic
CATKIN_LINT: true
CCOV: true
env:
DOCKER_IMAGE: 'moveit/moveit:${{ matrix.env.IMAGE }}-release'
AFTER_RUN_TARGET_TEST: ${{ matrix.env.CCOV && './.ci.prepare_codecov' || '' }}
Expand All @@ -31,16 +28,16 @@ jobs:
name: "${{ matrix.env.IMAGE }}${{ matrix.env.CATKIN_LINT && ' + catkin_lint' || ''}}${{ matrix.env.CCOV && ' + ccov' || ''}}${{ matrix.env.IKFAST_TEST && ' + ikfast' || ''}}${{ matrix.env.CLANG_TIDY && ' + clang-tidy' || '' }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: cache upstream_ws
uses: pat-s/always-upload-cache@v2.1.3
uses: pat-s/always-upload-cache@v3
with:
path: ${{ env.BASEDIR }}/upstream_ws
key: upstream_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('upstream.rosinstall') }}-${{ github.run_id }}
restore-keys: |
upstream_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('upstream.rosinstall') }}
- name: cache ccache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
Expand All @@ -51,13 +48,13 @@ jobs:
uses: 'ros-industrial/industrial_ci@master'
env: ${{ matrix.env }}
- name: upload test artifacts (on failure)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: test-results
path: ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml
- name: upload codecov report
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
if: ${{ matrix.env.CCOV }}
with:
files: ${{ env.BASEDIR }}/coverage.info
19 changes: 4 additions & 15 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,10 @@ on:
jobs:
pre-commit:
name: pre-commit
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- name: Install clang-format-10
run: sudo apt-get install clang-format-10
- name: Install catkin-lint
run: |
lsb_release -sc
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt-get -q update
sudo apt-get -q install python3-rosdep
sudo rosdep init
rosdep update
sudo apt-get -q install catkin-lint
export ROS_DISTRO=noetic
- uses: pre-commit/action@v2.0.0
- uses: rhaschke/install-catkin_lint-action@v1.0
- uses: pre-commit/action@v3.0.0

0 comments on commit d6cea2c

Please sign in to comment.