AP_Logger: don't virtual out_of_time_for_writing_messages for DF #28
Workflow file for this run
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 scripting | |
on: | |
push: | |
paths: # only run for scripting changes | |
- 'libraries/AP_Scripting/tests/docs_check.py' | |
- 'libraries/AP_Scripting/generator/**' | |
- '**.lua' | |
pull_request: | |
paths: # only run for scripting changes | |
- 'libraries/AP_Scripting/tests/docs_check.py' | |
- 'libraries/AP_Scripting/generator/**' | |
- '**.lua' | |
workflow_dispatch: | |
concurrency: | |
group: ci-${{github.workflow}}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-scripting: | |
runs-on: ubuntu-22.04 | |
container: ardupilot/ardupilot-dev-base:v0.1.0 | |
steps: | |
# git checkout the PR | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Lua Linter | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install lua-check | |
./Tools/scripts/run_luacheck.sh | |
- name: copy docs | |
run: | | |
PATH="/github/home/.local/bin:$PATH" | |
mv "libraries/AP_Scripting/docs/docs.lua" "libraries/AP_Scripting/docs/current_docs.lua" | |
- name: build sitl # we don't really need to build the full code, just trigger docs re-gen with --scripting-docs, timeout after 10 seconds | |
shell: bash | |
run: | | |
git config --global --add safe.directory ${GITHUB_WORKSPACE} | |
PATH="/github/home/.local/bin:$PATH" | |
./waf configure --board sitl | |
timeout 10 ./waf antennatracker --scripting-docs || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi | |
- name: run compare | |
run: | | |
PATH="/github/home/.local/bin:$PATH" | |
python ./libraries/AP_Scripting/tests/docs_check.py "./libraries/AP_Scripting/docs/docs.lua" "./libraries/AP_Scripting/docs/current_docs.lua" |