Skip to content

Commit

Permalink
Install pinned CI python requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
berndgassmann authored Dec 3, 2024
1 parent 8ab9995 commit f9a3509
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
GTEST_OUTPUT: "xml:test_results"
BUILDCMD: "colcon build --event-handlers console_direct+ --executor sequential --cmake-args -DBUILD_HARDENING=ON -DBUILD_TESTING=ON -DBUILD_PYTHON_BINDING=ON -DPYTHON_BINDING_VERSION=${PYTHON_BINDING_VERSION} -DPYTHON_PACKAGE_FOLDER_NAME=${PYTHON_PACKAGE_FOLDER_NAME} && colcon test --event-handlers console_direct+ --packages-select ad_map_access ad_physics && colcon test-result"
BUILDCMD: "colcon build --event-handlers console_direct+ --executor sequential --cmake-args -DBUILD_HARDENING=ON -DBUILD_TESTING=ON -DBUILD_PYTHON_BINDING=ON -DPYTHON_BINDING_VERSION=${PYTHON_BINDING_VERSION} && colcon test --event-handlers console_direct+ --packages-select ad_map_access ad_physics && colcon test-result"

permissions:
contents: read
Expand All @@ -24,27 +24,23 @@ jobs:
CC: /usr/bin/clang-10
CXX: /usr/bin/clang++-10
PYTHON_BINDING_VERSION: "3.10"
PYTHON_PACKAGE_FOLDER_NAME: "site-packages"
- os: ubuntu-22.04
compiler: gcc11
EXTRA_PACKAGES: ""
CC: ""
CXX: ""
PYTHON_BINDING_VERSION: "3.10"
PYTHON_PACKAGE_FOLDER_NAME: "site-packages"
- os: ubuntu-22.04
compiler: clang14
EXTRA_PACKAGES: clang-14
CC: /usr/bin/clang-14
CXX: /usr/bin/clang++-14
PYTHON_BINDING_VERSION: "3.10"
PYTHON_PACKAGE_FOLDER_NAME: "site-packages"

name: ${{ matrix.os }}, ${{ matrix.compiler }}, python-${{ matrix.PYTHON_BINDING_VERSION }}
runs-on: ${{ matrix.os }}
env:
PYTHON_BINDING_VERSION: ${{ matrix.PYTHON_BINDING_VERSION }}
PYTHON_PACKAGE_FOLDER_NAME: ${{ matrix.PYTHON_PACKAGE_FOLDER_NAME }}
EXTRA_PACKAGES: ${{ matrix.EXTRA_PACKAGES }}

steps:
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ fi
sudo apt-get install -y --no-install-recommends python${PYTHON_BINDING_VERSION}-dev libpython${PYTHON_BINDING_VERSION}-dev
curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python${PYTHON_BINDING_VERSION}

# to handle some error on missing pip dependencies
sudo pip${PYTHON_BINDING_VERSION} install testresources
sudo pip${PYTHON_BINDING_VERSION} install --upgrade setuptools==59.6.0
sudo pip${PYTHON_BINDING_VERSION} install colcon-common-extensions unittest-xml-reporting pygccxml pyplusplus
if [[ "${BUILD_DOCU}x" != "x" ]]; then
sudo apt-get install doxygen graphviz lcov
fi

if (( IS_UBUNTU_20_04 && IS_PYTHON_3_10 )); then
echo "!!!!!!! Ubunut 20.04 and python 3.10: compile boost 1.80 !!!!!!!"
Expand Down Expand Up @@ -85,13 +84,5 @@ if (( IS_UBUNTU_20_04 && IS_PYTHON_3_10 )); then

fi


if [[ "${BUILD_DOCU}x" != "x" ]]; then
sudo apt-get install doxygen graphviz lcov
sudo pip3 install --upgrade six>=1.11.0
sudo pip3 install Markdown==3.2.1
sudo pip3 install mkdocs
sudo pip3 install markdown-include
sudo pip3 install pymdown-extensions==8.0.1
sudo pip3 install pygments mdx_truly_sane_lists
fi
sudo apt remove python3-pygments
sudo pip${PYTHON_BINDING_VERSION} install -r .github/workflows/requirements.txt
14 changes: 14 additions & 0 deletions .github/workflows/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
colcon-common-extensions==0.3.0
Markdown==3.7
markdown-include==0.8.1
mdx_truly_sane_lists==1.3
mkdocs==1.6.1
pygccxml==2.6.0
Pygments==2.18.0
pymdown-extensions==10.12
pyplusplus==1.8.5
setuptools==75.1.0
six==1.16.0
testresources==2.0.1
unittest-xml-reporting==3.2.0

0 comments on commit f9a3509

Please sign in to comment.