From 56dcf2ea7b6656d220c589dc44d6050d81fc2106 Mon Sep 17 00:00:00 2001 From: Stefan Scherzinger Date: Wed, 24 Jul 2024 06:37:13 +0200 Subject: [PATCH] Fix the installation of dependencies in the CI --- .github/script/install_dependencies.sh | 12 ++++++++++-- schunk_egu_egk_gripper_dummy/README.md | 4 ++-- schunk_egu_egk_gripper_tests/package.xml | 1 + 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/script/install_dependencies.sh b/.github/script/install_dependencies.sh index 7c5e6f9..85a8179 100755 --- a/.github/script/install_dependencies.sh +++ b/.github/script/install_dependencies.sh @@ -1,4 +1,12 @@ #/usr/bin/bash cd $HOME -apt-get install curl libcurl4-openssl-dev -apt-get install python3-fastapi python3-uvicorn +apt-get install -y curl libcurl4-openssl-dev + +# Manage Python dependencies with pipx +# https://github.com/pypa/pipx +apt-get update +apt-get install -y pipx +pipx ensurepath +pipx ensurepath --global + +pipx install fastapi uvicorn httpx requests coverage diff --git a/schunk_egu_egk_gripper_dummy/README.md b/schunk_egu_egk_gripper_dummy/README.md index d77e51f..66e8d24 100644 --- a/schunk_egu_egk_gripper_dummy/README.md +++ b/schunk_egu_egk_gripper_dummy/README.md @@ -4,7 +4,7 @@ A minimalist protocol simulator for system tests. ## Dependencies ```bash -pip install fastapi uvicorn +pip install --user fastapi uvicorn ``` ## Getting started @@ -16,7 +16,7 @@ pip install fastapi uvicorn ## Run tests locally ```bash -pip install pytest httpx coverage +pip install --user pytest httpx coverage ``` ```bash diff --git a/schunk_egu_egk_gripper_tests/package.xml b/schunk_egu_egk_gripper_tests/package.xml index 98191f3..b04fa99 100644 --- a/schunk_egu_egk_gripper_tests/package.xml +++ b/schunk_egu_egk_gripper_tests/package.xml @@ -12,6 +12,7 @@ ament_lint_auto schunk_egu_egk_gripper_driver + schunk_egu_egk_gripper_dummy launch launch_ros launch_pytest