Skip to content

Use setup-python action #105

Use setup-python action

Use setup-python action #105

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
- uses: actions/setup-python@v5
with:
python-version: '3.x'
run: |
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