From 8010fc321b4c11294c219a10166a08e2a055a01c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven!=20Ragnar=C3=B6k?= Date: Thu, 9 Mar 2023 17:52:08 -0800 Subject: [PATCH 1/3] Use extras_require.test and pytest for test dependencies. --- setup.cfg | 9 ++------- setup.py | 5 +++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/setup.cfg b/setup.cfg index 4060ea44..759822a0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,10 +6,5 @@ all_files = 1 [upload_sphinx] upload-dir = doc/build/html -# [nosetests] -# where=test -# with-coverage=0 -# cover-package=nose -# debug=nose.loader -# pdb=0 -# pdb-failures=0 +[tool:pytest] +junit_suite_name = bloom diff --git a/setup.py b/setup.py index 8729e72f..7d14e1ce 100755 --- a/setup.py +++ b/setup.py @@ -36,6 +36,11 @@ }, include_package_data=True, install_requires=install_requires, + extras_require={ + 'test': [ + 'pep8', + 'pytest', + ]}, author='Tully Foote, William Woodall', author_email='tfoote@openrobotics.org, william@openrobotics.org', maintainer='William Woodall', From d9b337c47fbc0de5f6e85655c030b9be4ae18a92 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Fri, 22 Mar 2024 14:37:55 -0500 Subject: [PATCH 2/3] Pin to empy < 4 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7d14e1ce..4bd6442b 100755 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ install_requires = [ 'catkin_pkg >= 0.4.3', 'setuptools', - 'empy', + 'empy < 4', 'packaging', 'python-dateutil', 'PyYAML', From 0515be3a90d1efd87d46524b06b43eaea3f2bfdd Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Fri, 22 Mar 2024 13:16:53 -0500 Subject: [PATCH 3/3] Switch to unified ros-infrastructure CI --- .github/workflows/ci.yaml | 46 ++++++++++++--------------------------- 1 file changed, 14 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 37244295..ec45193e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,38 +1,20 @@ -name: bloom-ci +--- +name: Run tests -on: +on: # yamllint disable-line rule:truthy push: branches: ['master'] pull_request: - branches: ['*'] - schedule: - - cron: '40 7 * * 0' jobs: - build: - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - python: [3.7, 3.8, 3.9] - include: - - os: ubuntu-18.04 - python: 2.7 - - os: ubuntu-18.04 - python: 3.6 - name: bloom tests - runs-on: ${{matrix.os}} - - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{matrix.python}} - uses: actions/setup-python@v1 - with: - python-version: ${{matrix.python}} - - name: Install dependencies - run: | - python -m pip install --upgrade pip setuptools - python -m pip install PyYAML argparse empy rosdep vcstools catkin-pkg python-dateutil packaging - python -m pip install nose coverage pep8 - - name: Run tests - run: | - BLOOM_VERBOSE=1 python setup.py nosetests -s --tests test + pytest: + uses: ros-infrastructure/ci/.github/workflows/pytest.yaml@main + with: + matrix-filter: >- + del(.matrix.os[] | select(contains("windows"))) | del(.matrix.python[] | + select(contains("3.10") or contains("3.11") or contains("3.12"))) + yamllint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: yamllint -f github .