From 0bb19e108b1b41bc15dd86b368d8697fa3ab2a63 Mon Sep 17 00:00:00 2001 From: Ruichao Wu Date: Thu, 14 Dec 2023 16:43:02 +0100 Subject: [PATCH] update CI --- .github/workflows/build.yaml | 18 +++++++++++++++--- .github/workflows/build_ros.yaml | 6 ++---- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 90cf29e..b86e476 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,4 @@ -name: ros_model_parser +name: test_python_pkg on: [push, pull_request] @@ -18,9 +18,21 @@ jobs: python-version: ${{ matrix.python-version_ubuntu-latest }} - name: Install dependencies + run: python -m pip install --upgrade pip setuptools wheel + + - name: Install python pkgs + run: ./install.sh + shell: bash + + - name: install pytest pytest-cov + run: | + pip install pytest pytest-cov + + - name: Test with pytest run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + export COVERAGE=true + ./test.sh + shell: bash lint: name: pre-commit diff --git a/.github/workflows/build_ros.yaml b/.github/workflows/build_ros.yaml index a1b33d1..86b59c4 100644 --- a/.github/workflows/build_ros.yaml +++ b/.github/workflows/build_ros.yaml @@ -1,4 +1,4 @@ -name: CI +name: test_as_ros_pkg on: [push, pull_request] @@ -7,9 +7,7 @@ jobs: strategy: matrix: env: - - { ROS_DISTRO: melodic } - - { ROS_DISTRO: noetic } - - { ROS_DISTRO: humble } + - { ROS_DISTRO: humble, NOT_TEST_BUILD: true } runs-on: ubuntu-latest steps: - uses: actions/checkout@v1