Skip to content

python3

python3 #104

Workflow file for this run

name: CI
on:
push:
pull_request:
branches:
- main
jobs:
unit_tests:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
matrix:
container: ['ros:iron', 'ros:rolling']
container: ${{ matrix.container }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pip
run: |
VENV=$(mktemp -d)
python3 -m venv $VENV
if [ -f $VENV/Scripts/activate ]; then
. $VENV/Scripts/activate
else
. $VENV/bin/activate
fi
python3 -m pip install -U pip setuptools
- name: Install pip dependencies
run: |
python3 -m pip install --upgrade --upgrade-strategy eager .[test]
python3 -m pip freeze
- name: Install apt dependencies
run: sudo apt update && sudo apt install -y doxygen graphviz
- name: Run tests
run: py.test --verbose test