Skip to content

Update includes to fix implicit defined warnings #1169

Update includes to fix implicit defined warnings

Update includes to fix implicit defined warnings #1169

Workflow file for this run

name: Test Pytest
on:
push:
branches: [master]
paths-ignore:
- "**.md"
pull_request:
branches: [master]
paths-ignore:
- "**.md"
jobs:
pytest:
runs-on: ubuntu-20.04
timeout-minutes: 30
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: noetic
- uses: actions/checkout@v3
with:
lfs: true
submodules: recursive
- name: Move directory
run: |
mkdir -p $HOME/catkin_ws/src/soccerbot
mv $GITHUB_WORKSPACE/* $HOME/catkin_ws/src/soccerbot
- name: Install apt fast
run: |
sudo apt-get update
sudo apt-get install -q -y software-properties-common
sudo add-apt-repository ppa:apt-fast/stable -y
echo debconf apt-fast/maxdownloads string 16 | sudo debconf-set-selections
echo debconf apt-fast/dlflag boolean true | sudo debconf-set-selections
echo debconf apt-fast/aptmanager string apt-get | sudo debconf-set-selections
sudo apt-get install -q -y apt-fast
sudo apt-get clean
- name: Install ros dependencies
run: |
cd $HOME/catkin_ws/src/soccerbot
source /opt/ros/noetic/setup.bash
rosdep update
rosdep install --from-paths . --ignore-src -r -s | grep 'apt-get install' | awk '{print $5}' | sort > /tmp/catkin_install_list
sudo apt-fast install -y --no-install-recommends $(cat /tmp/catkin_install_list)
sudo apt-fast install -y python3-catkin-tools
- name: Install python dependencies
run: |
cd $HOME/catkin_ws/src/soccerbot
source /opt/ros/noetic/setup.bash
pip install pyOpenSSL==23.0.0
pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --trusted-host=pytorch.org --trusted-host=download.pytorch.org --trusted-host=files.pypi.org --trusted-host=files.pytorch.org \
-r requirements.txt --find-links https://download.pytorch.org/whl/torch_stable.html
- name: Build Soccerbot
run: |
cd $HOME/catkin_ws
source /opt/ros/noetic/setup.bash
catkin init
catkin build
- name: Initialize fake display and roscore
run: |
source /opt/ros/noetic/setup.bash
roscore &
sudo apt-fast install -y python3-tk
Xvfb :1 -screen 0 1024x768x24 & # Fake display
export DISPLAY=unix:1
- name: Pytest
run: |
mkdir -p /home/$USER/.ros/config && cd /home/$USER/.ros/config && ln -s /opt/ros/noetic/etc/ros/python_logging.conf
cd $HOME/catkin_ws/src/soccerbot
source /opt/ros/noetic/setup.bash
source $HOME/catkin_ws/devel/setup.bash
export PYTHONPATH=$PYTHONPATH:soccer_common/src:soccer_pycontrol/src
pytest -s --cache-clear --ignore=soccer_embedded --ignore=external --ignore=soccer_rlcontrol --ignore=test_integration.py --ignore=soccer_webots
# - name: Setup tmate session
# timeout-minutes: 15
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3