Skip to content

Commit d39414a

Browse files
committed
ci: add xvfb for stubgen
1 parent 593111d commit d39414a

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ jobs:
134134
key: ${{ runner.os }}-apt-${{ hashFiles('debian_deps.txt') }}
135135
restore-keys: |
136136
${{ runner.os }}-apt-
137+
- name: Install virtual frame buffer tool
138+
run: sudo apt install xvfb
137139
- name: Cache rcs build directory
138140
uses: actions/cache@v4
139141
with:
@@ -162,7 +164,7 @@ jobs:
162164
pip install -v --no-build-isolation '.[dev]'
163165
pip install -v --no-build-isolation extensions/${{ matrix.extension }}
164166
- name: Check that stub files are up-to-date
165-
run: make -C extensions/${{ matrix.extension }} stubgen && git diff --exit-code
167+
run: xvfb-run make -C extensions/${{ matrix.extension }} stubgen && git diff --exit-code
166168
- name: Clang build
167169
run: make -C extensions/${{ matrix.extension }} clangcompile PYTHON_EXECUTABLE=${{ steps.setup-python.outputs.python-path }}
168170
- name: Check clang format

extensions/rcs_fr3/src/rcs_fr3/_core/hw/__init__.pyi

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,14 @@ class Franka(rcs._core.common.Robot):
5757
def __init__(self, ip: str, ik: rcs._core.common.Kinematics | None = None) -> None: ...
5858
def automatic_error_recovery(self) -> None: ...
5959
def controller_set_joint_position(
60-
self,
61-
desired_q: numpy.ndarray[tuple[typing.Literal[7]], numpy.dtype[numpy.float64]],
60+
self, desired_q: numpy.ndarray[tuple[typing.Literal[7]], numpy.dtype[numpy.float64]]
6261
) -> None: ...
6362
def double_tap_robot_to_continue(self) -> None: ...
6463
def get_config(self) -> FrankaConfig: ...
6564
def get_state(self) -> FrankaState: ...
6665
def osc_set_cartesian_position(self, desired_pos_EE_in_base_frame: rcs._core.common.Pose) -> None: ...
6766
def set_cartesian_position_ik(
68-
self,
69-
pose: rcs._core.common.Pose,
70-
max_time: float,
71-
elbow: float | None,
72-
max_force: float | None = 5,
67+
self, pose: rcs._core.common.Pose, max_time: float, elbow: float | None, max_force: float | None = 5
7368
) -> None: ...
7469
def set_cartesian_position_internal(self, pose: rcs._core.common.Pose) -> None: ...
7570
def set_config(self, cfg: FrankaConfig) -> bool: ...

extensions/rcs_panda/src/rcs_panda/_core/hw/__init__.pyi

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,14 @@ class Franka(rcs._core.common.Robot):
5757
def __init__(self, ip: str, ik: rcs._core.common.Kinematics | None = None) -> None: ...
5858
def automatic_error_recovery(self) -> None: ...
5959
def controller_set_joint_position(
60-
self,
61-
desired_q: numpy.ndarray[tuple[typing.Literal[7]], numpy.dtype[numpy.float64]],
60+
self, desired_q: numpy.ndarray[tuple[typing.Literal[7]], numpy.dtype[numpy.float64]]
6261
) -> None: ...
6362
def double_tap_robot_to_continue(self) -> None: ...
6463
def get_config(self) -> FrankaConfig: ...
6564
def get_state(self) -> FrankaState: ...
6665
def osc_set_cartesian_position(self, desired_pos_EE_in_base_frame: rcs._core.common.Pose) -> None: ...
6766
def set_cartesian_position_ik(
68-
self,
69-
pose: rcs._core.common.Pose,
70-
max_time: float,
71-
elbow: float | None,
72-
max_force: float | None = 5,
67+
self, pose: rcs._core.common.Pose, max_time: float, elbow: float | None, max_force: float | None = 5
7368
) -> None: ...
7469
def set_cartesian_position_internal(self, pose: rcs._core.common.Pose) -> None: ...
7570
def set_config(self, cfg: FrankaConfig) -> bool: ...

0 commit comments

Comments
 (0)