Skip to content

Commit 03b429c

Browse files
Merge pull request #129 from jrl-umi3218/pre-commit-ci-update-config
2 parents 2a56b56 + ad50ef2 commit 03b429c

8 files changed

Lines changed: 18 additions & 21 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-latest, windows-latest]
16+
os: [ubuntu-22.04, ubuntu-24.04, macos-latest, windows-latest]
1717
build-type: [Debug, RelWithDebInfo]
1818
compiler: [gcc, clang]
1919
exclude:
@@ -28,12 +28,6 @@ jobs:
2828
- uses: actions/checkout@v3
2929
with:
3030
submodules: recursive
31-
- name: Install pip for Python 2 (Ubuntu 20.04)
32-
run: |
33-
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
34-
sudo python2 get-pip.py
35-
rm -f get-pip.py
36-
if: matrix.os == 'ubuntu-20.04'
3731
- name: Install dependencies
3832
uses: jrl-umi3218/github-actions/install-dependencies@master
3933
with:
@@ -42,8 +36,7 @@ jobs:
4236
ubuntu: |
4337
apt: cython cython3 python-numpy python3-numpy python-pytest python3-pytest python-coverage python3-coverage python-setuptools python3-setuptools libeigen3-dev doxygen doxygen-latex libboost-all-dev libtinyxml2-dev libyaml-cpp-dev
4438
macos: |
45-
cask: gfortran
46-
brew: eigen boost tinyxml2 yaml-cpp
39+
brew: eigen boost tinyxml2 yaml-cpp gcc
4740
pip: Cython coverage numpy pytest
4841
windows: |
4942
pip: Cython coverage numpy pytest
@@ -68,7 +61,7 @@ jobs:
6861
windows-options: -DPYTHON_BINDING:BOOL=OFF
6962
- name: Upload documentation
7063
# Only run on master branch and for one configuration
71-
if: matrix.os == 'ubuntu-20.04' && matrix.build-type == 'RelWithDebInfo' && matrix.compiler == 'gcc' && github.ref == 'refs/heads/master'
64+
if: matrix.os == 'ubuntu-24.04' && matrix.build-type == 'RelWithDebInfo' && matrix.compiler == 'gcc' && github.ref == 'refs/heads/master'
7265
uses: jrl-umi3218/github-actions/upload-documentation@master
7366
with:
7467
GH_USER: gergondet

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
- id: check-useless-excludes
55
- id: check-hooks-apply
66
- repo: https://github.com/pre-commit/mirrors-clang-format
7-
rev: v21.1.5
7+
rev: v21.1.6
88
hooks:
99
- id: clang-format
1010
- repo: https://github.com/pre-commit/pre-commit-hooks

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ find_package(RBDyn_TinyXML2 REQUIRED)")
5656
add_project_dependency(tinyxml2 REQUIRED NO_MODULE)
5757
endif()
5858

59-
# Note: technically we don't need system but it is likely to be here and CMake
60-
# <= 3.5.0 needs at least one component to define Boost::boost
61-
add_project_dependency(Boost REQUIRED COMPONENTS system)
59+
# Note: technically we don't need filesystem but it is likely to be here and
60+
# CMake <= 3.5.0 needs at least one component to define Boost::boost
61+
add_project_dependency(Boost REQUIRED COMPONENTS filesystem)
6262
endif()
6363

6464
# For MSVC, set local environment variable to enable finding the built dll of

src/RBDyn/CoM.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Copyright 2012-2019 CNRS-UM LIRMM, CNRS-AIST JRL
33
*/
44

5+
#include <cassert>
6+
57
// associated header
68
#include "RBDyn/CoM.h"
79

src/RBDyn/IS.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright 2012-2019 CNRS-UM LIRMM, CNRS-AIST JRL
33
*/
44

5+
#include <cassert>
56
#include <iostream>
67

78
// associated header

src/RBDyn/Jacobian.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "RBDyn/Jacobian.h"
77

88
// includes
9+
#include <cassert>
910
// std
1011
#include <algorithm>
1112
#include <numeric>

tests/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
enable_testing()
66

7-
find_package(Boost REQUIRED COMPONENTS unit_test_framework system filesystem)
7+
find_package(Boost REQUIRED COMPONENTS unit_test_framework filesystem)
88

99
set(HEADERS XXXarm.h XYZarm.h XYZSarm.h Tree30Dof.h SSSarm.h)
1010

1111
macro(addUnitTest name)
1212
if(${BUILD_TESTING})
1313
add_executable(${name} ${name}.cpp ${HEADERS})
1414
target_link_libraries(
15-
${name} PRIVATE RBDyn Boost::unit_test_framework Boost::system
16-
Boost::filesystem Boost::disable_autolinking)
15+
${name} PRIVATE RBDyn Boost::unit_test_framework Boost::filesystem
16+
Boost::disable_autolinking)
1717
target_compile_definitions(
1818
${name} PRIVATE -DBOOST_TEST_DYN_LINK
1919
-DTESTS_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
@@ -27,8 +27,8 @@ macro(addParserUnitTest name)
2727
if(${BUILD_TESTING} AND ${BUILD_RBDYN_PARSERS})
2828
add_executable(${name} ${name}.cpp ${HEADERS})
2929
target_link_libraries(
30-
${name} PRIVATE RBDynParsers Boost::unit_test_framework Boost::system
31-
Boost::filesystem Boost::disable_autolinking)
30+
${name} PRIVATE RBDynParsers Boost::unit_test_framework Boost::filesystem
31+
Boost::disable_autolinking)
3232
target_compile_definitions(
3333
${name} PRIVATE -DBOOST_TEST_DYN_LINK
3434
-DTESTS_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}")

tests/InverseStaticsTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
// boost
1212
#define BOOST_TEST_MODULE Statics
13-
#include <boost/test/included/unit_test.hpp>
14-
#include <boost/test/output_test_stream.hpp>
13+
#include <boost/test/tools/output_test_stream.hpp>
14+
#include <boost/test/unit_test.hpp>
1515

1616
// SpaceVecAlg
1717
#include <SpaceVecAlg/SpaceVecAlg>

0 commit comments

Comments
 (0)