-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (64 loc) · 1.97 KB
/
poetry.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: poetry runs
on:
push:
pull_request:
branches:
- main
workflow_dispatch:
env:
ROS_DISTRO: foxy
ROS_WS: maliput_ws
jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu:20.04
strategy:
matrix:
python: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- uses: ros-tooling/setup-ros@v0.6
- name: poetry install
shell: bash
run: pip3 install poetry
# TODO(francocipollone): Once https://github.com/UrbanMachine/colcon-poetry-ros/pull/41 is merged we can point to the official colcon-poetry-ros.
- name: colcon-poetry-ros install
shell: bash
run: pip3 install 'colcon-poetry-ros @ git+https://github.com/francocipollone/colcon-poetry-ros.git@francocipollone/fix_deps'
# Build and install maliput dependencies.
- uses: ros-tooling/action-ros-ci@v0.3
id: action_ros_ci_step
with:
package-name: maliput maliput_py maliput_malidrive maliput_sim
target-ros2-distro: ${{ env.ROS_DISTRO }}
vcs-repo-file-url: ${GITHUB_WORKSPACE}/.github/dependencies.repos
extra-cmake-args: -DBUILD_TESTING=False
skip-tests: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
# Run checks
- name: Run poetry check
shell: bash
run: |
poetry check
- name: Run poetry install
shell: bash
run: |
poetry install
- name: Run pytest
shell: bash
run: |
. /opt/ros/${{ env.ROS_DISTRO }}/setup.bash;
. ${{ steps.action_ros_ci_step.outputs.ros-workspace-directory-name }}/install/setup.bash;
poetry run pytest test/ -v;
- name: Run flake8
shell: bash
run: |
poetry run flake8 maliput_sim test
- name: Run mypy
shell: bash
run: |
poetry run mypy maliput_sim