diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6ae2ffe..ff94b32 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,12 +29,12 @@ jobs: name: ${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - name: industrial_ci uses: 'ros-industrial/industrial_ci@master' env: ${{ matrix.env }} - name: upload test artifacts (on failure) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v7 if: failure() with: name: test-results diff --git a/launch_param_builder/utils.py b/launch_param_builder/utils.py index b2a517e..933ddd0 100644 --- a/launch_param_builder/utils.py +++ b/launch_param_builder/utils.py @@ -62,7 +62,9 @@ def load_file(file_path: Path): try: with open(file_path, "r") as file: return file.read() - except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available + except ( + EnvironmentError + ): # parent of IOError, OSError *and* WindowsError where availabl return None @@ -72,7 +74,9 @@ def load_yaml(file_path: Path): try: with open(file_path, "r") as file: return yaml.load(file, Loader=yaml.FullLoader) - except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available + except ( + EnvironmentError + ): # parent of IOError, OSError *and* WindowsError where availabl return None diff --git a/setup.py b/setup.py index 23ae6b9..770b545 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,11 @@ maintainer_email="jafar@picknik.ai", description="Python library for loading parameters in launch files", license="BSD", - tests_require=["pytest"], + extras_require={ + "test": [ + "pytest", + ], + }, entry_points={ "console_scripts": [], },