foot change subscription needs to be tested #2327
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
env: | |
PYTHONWARNINGS: "ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources,ignore:easy_install command is deprecated,ignore:setup.py install is deprecated" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ubuntu:noble | |
steps: | |
- name: Cancel outdated jobs | |
uses: fkirc/skip-duplicate-actions@v5 | |
with: | |
cancel_others: 'true' | |
# Remove comments to spawn an interactive debigging ssh shell in the ci | |
#- name: Setup tmate session | |
# uses: mxschmitt/action-tmate@v3 | |
# with: | |
# detached: true | |
- name: Set up ROS ecosystem | |
uses: ros-tooling/[email protected] | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Configure git to trust repository | |
run: git config --global --add safe.directory /__w/bitbots_main/bitbots_main | |
- name: Add '$HOME/.local/bin' to PATH | |
run: | | |
mkdir -p $HOME/.local/bin | |
echo "PATH=$PATH:/github/home/.local/bin" >> "$GITHUB_ENV" | |
- name: Pull source code for libraries and install dependencies | |
run: | | |
sudo apt-get remove -y python3-pytest-repeat #TODO remove once the upstream apt package reports the correct version on the newest pip version | |
make install HTTPS=true ARGS="--ci" | |
- name: Set up colcon workspace | |
run: | | |
mkdir -p /colcon_ws/src | |
ln -s $(realpath .) /colcon_ws/src/bitbots_main | |
- name: Build packages | |
run: | | |
. /opt/ros/jazzy/setup.sh | |
colcon build --symlink-install | |
working-directory: /colcon_ws | |
- name: Test packages | |
run: | | |
# Source workspace | |
. /opt/ros/jazzy/setup.sh | |
. install/setup.sh | |
# Run tests for all packages | |
colcon test --event-handlers console_direct+ --return-code-on-test-failure --parallel-workers 1 | |
working-directory: /colcon_ws |