Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ipa-rwu committed Dec 14, 2023
1 parent eac1c05 commit 0bb19e1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ros_model_parser
name: test_python_pkg

on: [push, pull_request]

Expand All @@ -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
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/build_ros.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: test_as_ros_pkg

on: [push, pull_request]

Expand All @@ -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
Expand Down

0 comments on commit 0bb19e1

Please sign in to comment.