Skip to content

Commit

Permalink
Merge pull request #72 from rkent/use-ubuntu-22
Browse files Browse the repository at this point in the history
Use ros docker images in github runner
  • Loading branch information
tfoote authored Mar 26, 2024
2 parents e3c3215 + 7554c21 commit c572a53
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,23 @@ on:
jobs:
unit_tests:
name: Unit Tests
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9']
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
run: apt update && apt install -y python3-pip

- name: Install pip dependencies
run: |
python -m pip install --upgrade --upgrade-strategy eager .[test]
python -m pip freeze
python3 -m pip install --upgrade --upgrade-strategy eager .[test]
python3 -m pip freeze
- name: Run tests
run: py.test --verbose test

0 comments on commit c572a53

Please sign in to comment.