Skip to content

Add scan option to build packages in subdirectories #218

Add scan option to build packages in subdirectories

Add scan option to build packages in subdirectories #218

Workflow file for this run

name: CI
on:
push:
pull_request:
branches:
- main
jobs:
venv_tests:
name: Install test using venv
strategy:
matrix:
os: ['ubuntu-22.04', 'ubuntu-24.04']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install apt dependencies
run: |
sudo apt update && sudo apt install -y \
python3-pip \
python3-venv \
doxygen \
graphviz
- name: Activate python virtual environment
run: |
python3 -m venv venv
source venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Install pip dependencies
run: |
python3 -m pip install .[test]
python3 -m pip freeze
- name: Run tests
run: python3 -m pytest --verbose test
unit_tests:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
matrix:
container: ['ros:iron', 'ros:jazzy', 'ros:rolling']
container: ${{ matrix.container }}
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pip
run: |
apt update && apt install -y \
python3-pip \
python3-pytest \
python3-flake8 \
python3-flake8-blind-except \
python3-flake8-builtins \
python3-flake8-class-newline \
python3-flake8-comprehensions \
python3-flake8-deprecated \
python3-flake8-docstrings \
python3-flake8-import-order \
python3-flake8-quotes
- name: Install apt dependencies
run: apt update && apt install -y doxygen graphviz
- name: Install pip dependencies
run: |
python3 -m pip install .[test]
python3 -m pip freeze
- name: Run tests
run: python3 -m pytest --verbose test