Skip to content

Try out container matrix #68

Try out container matrix

Try out container matrix #68

Workflow file for this run

name: CI
on:
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@v2
- name: Setup python
uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# architecture: x64
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install pip dependencies
run: |
python -m pip install --upgrade --upgrade-strategy eager .[test]
python -m pip freeze
- name: Run tests
run: py.test --verbose test