Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0 #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test package against ROS 2 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test-ros2: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| name: [ | |
| "ubuntu-py39", | |
| "ubuntu-py310", | |
| "ubuntu-py311", | |
| "ubuntu-py312", | |
| ] | |
| include: | |
| - name: "ubuntu-py39" | |
| os: ubuntu-latest | |
| python-version: "3.9" | |
| - name: "ubuntu-py310" | |
| os: ubuntu-latest | |
| python-version: "3.10" | |
| - name: "ubuntu-py311" | |
| os: ubuntu-latest | |
| python-version: "3.11" | |
| - name: "ubuntu-py312" | |
| os: ubuntu-latest | |
| python-version: "3.12" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install wheel | |
| - name: Install | |
| run: | | |
| python -m pip install --no-cache-dir -r requirements-dev.txt | |
| - name: Set up docker containers | |
| run: | | |
| docker build -t gramaziokohler/rosbridge:integration_tests_ros2 ./docker/ros2 | |
| docker run -d -p 9090:9090 --name rosbridge gramaziokohler/rosbridge:integration_tests_ros2 /bin/bash -c "ros2 launch /integration-tests-launch.py" | |
| docker ps -a | |
| - name: Run linter | |
| run: | | |
| invoke check | |
| - name: Run tests | |
| run: | | |
| pytest tests/ros2 | |
| - name: Tear down docker containers | |
| run: | | |
| docker rm -f rosbridge |