Skip to content

Commit

Permalink
Create jobs to check for warnings (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich authored Sep 25, 2023
1 parent c175a33 commit bff9e63
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/sphinx-check-warnings-humble.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Check Page for Warnings Humble"
on:
workflow_dispatch:
push:
branches:
- humble
schedule:
# Run every morning to ensure component documentation is up to date on deployment
- cron: '23 5 * * *'

jobs:
build-halt-on-warnings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: humble
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade --requirement requirements.txt
shell: bash
- name: Install generate_parameter_library
run: |
cd
git clone https://github.com/PickNikRobotics/generate_parameter_library.git
cd generate_parameter_library/generate_parameter_library_py/
python -m pip install .
shell: bash
- name: Build single version considering warnings as errors
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
make html-all-subrepos-with-errors
39 changes: 39 additions & 0 deletions .github/workflows/sphinx-check-warnings-iron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Check Page for Warnings Iron"
on:
workflow_dispatch:
push:
branches:
- iron
schedule:
# Run every morning to ensure component documentation is up to date on deployment
- cron: '23 5 * * *'

jobs:
build-halt-on-warnings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: iron
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade --requirement requirements.txt
shell: bash
- name: Install generate_parameter_library
run: |
cd
git clone https://github.com/PickNikRobotics/generate_parameter_library.git
cd generate_parameter_library/generate_parameter_library_py/
python -m pip install .
shell: bash
- name: Build single version considering warnings as errors
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
make html-all-subrepos-with-errors
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Check Page for Warnings"
name: "Check Page for Warnings Rolling"
on:
workflow_dispatch:
push:
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Status

[![Build & Deploy Page](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-make-page.yml/badge.svg)](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-make-page.yml)[![Sphinx Warnings](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-check-warnings.yml/badge.svg?branch=master)](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-check-warnings.yml)[![Broken Links](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-check-links.yml/badge.svg?branch=master)](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-check-links.yml)
[![Build & Deploy Page](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-make-page.yml/badge.svg)](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-make-page.yml)[![Broken Links](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-check-links.yml/badge.svg?branch=master)](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-check-links.yml)

[![Sphinx Warnings Rolling](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-check-warnings-rolling.yml/badge.svg?branch=master)](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-check-warnings-rolling.yml)
[![Sphinx Warnings Iron](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-check-warnings-iron.yml/badge.svg?branch=master)](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-check-warnings-iron.yml)
[![Sphinx Warnings Humble](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-check-warnings-humble.yml/badge.svg?branch=master)](https://github.com/ros-controls/control.ros.org/actions/workflows/sphinx-check-warnings-humble.yml)

# control.ros.org
https://control.ros.org/
Expand Down

0 comments on commit bff9e63

Please sign in to comment.