State machines behaviour trees #45
This file contains 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: Codacy Analysis | |
on: | |
pull_request: | |
jobs: | |
codacy-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup ROS 2 Sources List | |
run: | | |
sudo sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros2-latest.list' | |
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 | |
sudo apt-get update | |
- name: Install rosdep | |
run: | | |
sudo apt-get install -y python3-rosdep | |
sudo rosdep init | |
rosdep update | |
- name: Install ROS 2 dependencies | |
run: | | |
rosdep install --from-paths . --ignore-src -r -y | |
- name: Install rclpy | |
run: | | |
python -m pip install rclpy | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run tests and coverage | |
run: | | |
coverage run -m pytest | |
coverage xml -o coverage.xml | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
- name: Upload coverage to Codacy | |
run: python-codacy-coverage -r coverage.xml | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
# name: Codacy Analysis | |
# on: | |
# pull_request: | |
# jobs: | |
# codacy-analysis: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v3 | |
# - name: Setup ROS 2 Sources List | |
# run: | | |
# sudo sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros2-latest.list' | |
# sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 | |
# sudo apt-get update | |
# - name: Install rosdep | |
# run: | | |
# sudo apt-get install -y python3-rosdep | |
# sudo rosdep init | |
# rosdep update | |
# - name: Install ROS 2 dependencies | |
# run: | | |
# rosdep install --from-paths src --ignore-src -r -y | |
# - name: Install rclpy | |
# run: | | |
# python -m pip install rclpy | |
# - name: Install dependencies | |
# run: | | |
# python -m pip install --upgrade pip | |
# pip install -r requirements.txt | |
# - name: Run tests and coverage | |
# run: | | |
# coverage run -m pytest | |
# coverage xml -o coverage.xml | |
# env: | |
# CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
# - name: Upload coverage to Codacy | |
# run: python-codacy-coverage -r coverage.xml | |
# env: | |
# CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |