Skip to content

Commit

Permalink
Refs #20827: Check pip installation path
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
  • Loading branch information
JesusPoderoso committed Apr 29, 2024
1 parent 56979f5 commit df1159d
Showing 1 changed file with 77 additions and 62 deletions.
139 changes: 77 additions & 62 deletions .github/workflows/reusable-ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ jobs:
path: src/fastrtps
ref: ${{ inputs.fastdds-branch }}

#- uses: eProsima/eProsima-CI/external/setup-python@hotfix/python
# with:
# python-version: '3.11'
- uses: eProsima/eProsima-CI/external/setup-python@hotfix/python
with:
python-version: '3.11'

- name: Get minimum supported version of CMake
uses: eProsima/eProsima-CI/external/get-cmake@hotfix/python
Expand All @@ -68,19 +68,33 @@ jobs:
- name: Install apt dependencies
uses: eProsima/eProsima-CI/ubuntu/install_apt_packages@hotfix/python
with:
packages: libasio-dev libtinyxml2-dev libssl-dev python3 python3-pip
packages: libasio-dev libtinyxml2-dev libssl-dev
update: false
upgrade: false

- name: Install colcon
uses: eProsima/eProsima-CI/ubuntu/install_colcon@hotfix/python
#- name: Install colcon
# uses: eProsima/eProsima-CI/ubuntu/install_colcon@hotfix/python

- name: Install Python dependencies
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@hotfix/python
with:
packages: vcstool xmlschema==3.0.2
packages: vcstool xmlschema
upgrade: false

- name: Check python installed dependencies
run: |
python3 -m pip list
echo $?
python3 -m pip show vcstool
echo $?
python3 -m pip show xmlschema
echo $?
python3 -c "import sys"
echo $?
python3 -c "import xmlschema"
echo $?
ls -l $(which python3)
- name: Setup CCache
uses: eProsima/eProsima-CI/external/setup-ccache-action@hotfix/python

Expand All @@ -103,58 +117,59 @@ jobs:
skip_existing: 'true'

# Get Shapes Demo to make sure it keeps compiling
- name: Get Shapes Demo branch
id: get_shapes_demo_branch
uses: eProsima/eProsima-CI/ubuntu/get_related_branch_from_repo@hotfix/python
with:
remote_repository: eProsima/ShapesDemo
fallback_branch: ${{ inputs.fastdds-branch || 'master' }}

- name: Download Shapes Demo repo
uses: eProsima/eProsima-CI/external/checkout@hotfix/python
with:
repository: eProsima/ShapesDemo
path: src/shapes-demo
ref: ${{ steps.get_shapes_demo_branch.outputs.deduced_branch }}

# Required for Shapes Demo
- name: Install Qt
uses: jurplel/install-qt-action@v2.13.0
with:
version: '5.15.2'
dir: '${{ github.workspace }}/qt_installation/'
modules: 'qtcharts'

- name: Colcon build
continue-on-error: false
uses: eProsima/eProsima-CI/multiplatform/colcon_build@hotfix/python
with:
colcon_meta_file: ${{ github.workspace }}/src/fastrtps/.github/workflows/config/ci.meta
colcon_build_args: ${{ inputs.colcon-args }}
cmake_args: ${{ inputs.cmake-args }}
cmake_args_default: -DCMAKE_CXX_FLAGS="-Werror -Wall -Wextra -Wpedantic -Wunused-value -Woverloaded-virtual" -DFASTDDS_EXAMPLE_TESTS=ON
cmake_build_type: ${{ matrix.cmake-build-type }}
workspace: ${{ github.workspace }}

- name: Colcon test
id: test
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') }}
uses: eProsima/eProsima-CI/multiplatform/colcon_test@hotfix/python
with:
colcon_test_args: ${{ inputs.colcon-args }}
colcon_test_args_default: --event-handlers=console_direct+
ctest_args: ${{ inputs.ctest-args }}
ctest_args_default: --repeat until-pass:3 --timeout 300 --label-exclude "xfail"
packages_names: fastrtps
workspace: ${{ github.workspace }}
test_report_artifact: ${{ format('test_report_{0}_{1}_{2}', inputs.label, github.job, join(matrix.*, '_')) }}

- name: Test summary
uses: eProsima/eProsima-CI/multiplatform/junit_summary@hotfix/python
if: ${{ !cancelled() && !contains(github.event.pull_request.labels.*.name, 'no-test') }}
with:
junit_reports_dir: "${{ steps.test.outputs.ctest_results_path }}"
print_summary: 'True'
show_failed: 'True'
show_disabled: 'False'
show_skipped: 'False'
# - name: Get Shapes Demo branch
# id: get_shapes_demo_branch
# uses: eProsima/eProsima-CI/ubuntu/get_related_branch_from_repo@hotfix/python
# with:
# remote_repository: eProsima/ShapesDemo
# fallback_branch: ${{ inputs.fastdds-branch || 'master' }}
#
# - name: Download Shapes Demo repo
# uses: eProsima/eProsima-CI/external/checkout@hotfix/python
# with:
# repository: eProsima/ShapesDemo
# path: src/shapes-demo
# ref: ${{ steps.get_shapes_demo_branch.outputs.deduced_branch }}
#
# # Required for Shapes Demo
# - name: Install Qt
# uses: jurplel/install-qt-action@v2.13.0
# with:
# version: '5.15.2'
# dir: '${{ github.workspace }}/qt_installation/'
# modules: 'qtcharts'
#
# - name: Colcon build
# continue-on-error: false
# uses: eProsima/eProsima-CI/multiplatform/colcon_build@hotfix/python
# with:
# colcon_meta_file: ${{ github.workspace }}/src/fastrtps/.github/workflows/config/ci.meta
# colcon_build_args: ${{ inputs.colcon-args }}
# cmake_args: ${{ inputs.cmake-args }}
# cmake_args_default: -DCMAKE_CXX_FLAGS="-Werror -Wall -Wextra -Wpedantic -Wunused-value -Woverloaded-virtual" -DFASTDDS_EXAMPLE_TESTS=ON
# cmake_build_type: ${{ matrix.cmake-build-type }}
# workspace: ${{ github.workspace }}
#
# - name: Colcon test
# id: test
# if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') }}
# uses: eProsima/eProsima-CI/multiplatform/colcon_test@hotfix/python
# with:
# colcon_test_args: ${{ inputs.colcon-args }}
# colcon_test_args_default: --event-handlers=console_direct+
# ctest_args: ${{ inputs.ctest-args }}
# ctest_args_default: --repeat until-pass:3 --timeout 300 --label-exclude "xfail"
# packages_names: fastrtps
# workspace: ${{ github.workspace }}
# test_report_artifact: ${{ format('test_report_{0}_{1}_{2}', inputs.label, github.job, join(matrix.*, '_')) }}
#
# - name: Test summary
# uses: eProsima/eProsima-CI/multiplatform/junit_summary@hotfix/python
# if: ${{ !cancelled() && !contains(github.event.pull_request.labels.*.name, 'no-test') }}
# with:
# junit_reports_dir: "${{ steps.test.outputs.ctest_results_path }}"
# print_summary: 'True'
# show_failed: 'True'
# show_disabled: 'False'
# show_skipped: 'False'
#

0 comments on commit df1159d

Please sign in to comment.