ci: add mkdocs-build job #1
Workflow file for this run
This file contains hidden or 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: build and test | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, edited, ready_for_review] | |
branches: | |
- development | |
- main | |
jobs: | |
build-and-test-ros2: | |
if: github.event.pull_request.draft == false | |
runs-on: | |
- self-hosted | |
- ${{ matrix.ros_distro }} | |
continue-on-error: true | |
strategy: | |
matrix: | |
ros_distro: | |
- jazzy | |
- humble | |
container: | |
image: osrf/ros:${{ matrix.ros_distro }}-desktop-full | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
clean: true | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 2.1.1 | |
- name: Install python dependencies | |
run: poetry install --with docs | |
- name: Build docs | |
shell: bash | |
run: | | |
poetry run mkdocs build --strict |