add normals and outliers #328
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pre-commit: | |
name: Run pre-commit hooks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: { python-version: "3.10" } | |
- uses: pre-commit/[email protected] | |
extract-image: | |
name: Get image version | |
runs-on: ubuntu-latest | |
outputs: | |
image-url: ${{ steps.extractor.outputs.image_url }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: { python-version: "3.10" } | |
- name: Install dependencies | |
run: | | |
sudo pip install yq | |
sudo apt-get install -y jq | |
- name: Extract image URL | |
id: extractor | |
run: | | |
IMAGE_URL=$(cat docker-compose.yaml | yq ".services.${{ github.event.repository.name }}.image") | |
echo "image_url=$IMAGE_URL" | tee -a $GITHUB_OUTPUT | |
build-and-check: | |
name: Build, test | |
needs: extract-image | |
runs-on: self-hosted | |
container: | |
image: ${{ needs.extract-image.outputs.image-url }} | |
defaults: | |
run: { shell: bash } | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build ROS2 packages | |
run: make build-all | |
- name: Test ROS2 packages | |
run: make test-all |