From 4d1f5c36ccd81e3a8cf7de427bb897439e3a297b Mon Sep 17 00:00:00 2001 From: Irene Bandera Date: Thu, 30 Nov 2023 10:53:09 +0100 Subject: [PATCH] Install python packages and colcon using eProsima-CI Signed-off-by: Irene Bandera --- .../install-python-packages/action.yml | 23 -------- .github/workflows/test.yml | 59 +++++++++++++++++-- 2 files changed, 55 insertions(+), 27 deletions(-) delete mode 100644 .github/actions/install-python-packages/action.yml diff --git a/.github/actions/install-python-packages/action.yml b/.github/actions/install-python-packages/action.yml deleted file mode 100644 index 7d4809b2..00000000 --- a/.github/actions/install-python-packages/action.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: 'install-python-packages' -description: 'Install necessary python packages' -runs: - using: "composite" - steps: - - id: install-python-packages - run: | - sudo pip3 install -U \ - sphinx==4.3.1 \ - doc8==0.10.1 \ - sphinx_rtd_theme==0.5.2 \ - sphinxcontrib.spelling==7.2.1 \ - sphinxcontrib-imagehelper==1.1.1 \ - sphinx-tabs==3.2.0 \ - colcon-common-extensions \ - colcon-mixin \ - vcstool \ - GitPython==3.1.24 \ - setuptools==58.2.0 \ - gcovr==5.0 \ - pyyaml \ - jsonschema - shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 20790ab5..7ba204a3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,8 +62,25 @@ jobs: - name: Install apt packages uses: ./src/DDS-Pipe/.github/actions/install-apt-packages + - name: Install colcon + uses: eProsima/eProsima-CI/ubuntu/install_colcon@v0 + - name: Install Python packages - uses: ./src/DDS-Pipe/.github/actions/install-python-packages + uses: eProsima/eProsima-CI/ubuntu/install_python_packages@v0 + with: + packages: \ + sphinx==4.3.1 \ + doc8==0.10.1 \ + sphinx_rtd_theme==0.5.2 \ + sphinxcontrib.spelling==7.2.1 \ + sphinxcontrib-imagehelper==1.1.1 \ + sphinx-tabs==3.2.0 \ + vcstool \ + GitPython==3.1.24 \ + setuptools==58.2.0 \ + gcovr==5.0 \ + pyyaml \ + jsonschema - name: Install uncrustify run: | @@ -148,8 +165,25 @@ jobs: - name: Install GTest uses: ./src/DDS-Pipe/.github/actions/install-gtest-linux + - name: Install colcon + uses: eProsima/eProsima-CI/ubuntu/install_colcon@v0 + - name: Install Python packages - uses: ./src/DDS-Pipe/.github/actions/install-python-packages + uses: eProsima/eProsima-CI/ubuntu/install_python_packages@v0 + with: + packages: \ + sphinx==4.3.1 \ + doc8==0.10.1 \ + sphinx_rtd_theme==0.5.2 \ + sphinxcontrib.spelling==7.2.1 \ + sphinxcontrib-imagehelper==1.1.1 \ + sphinx-tabs==3.2.0 \ + vcstool \ + GitPython==3.1.24 \ + setuptools==58.2.0 \ + gcovr==5.0 \ + pyyaml \ + jsonschema - name: Get build eProsima dependencies Job Id run: | @@ -225,8 +259,25 @@ jobs: - name: Install GTest uses: ./src/DDS-Pipe/.github/actions/install-gtest-linux + - name: Install colcon + uses: eProsima/eProsima-CI/ubuntu/install_colcon@v0 + - name: Install Python packages - uses: ./src/DDS-Pipe/.github/actions/install-python-packages + uses: eProsima/eProsima-CI/ubuntu/install_python_packages@v0 + with: + packages: \ + sphinx==4.3.1 \ + doc8==0.10.1 \ + sphinx_rtd_theme==0.5.2 \ + sphinxcontrib.spelling==7.2.1 \ + sphinxcontrib-imagehelper==1.1.1 \ + sphinx-tabs==3.2.0 \ + vcstool \ + GitPython==3.1.24 \ + setuptools==58.2.0 \ + gcovr==5.0 \ + pyyaml \ + jsonschema - name: Get build eProsima dependencies Job Id run: | @@ -235,7 +286,7 @@ jobs: head -n 1) echo "fastdds_job_id=${JOB_ID}" >> $GITHUB_ENV - - name: Download eProsima dependencies + - name: Download eProsima dependenciespackages uses: dawidd6/action-download-artifact@v2 with: workflow: build_dependencies.yml