forked from ArduPilot/ardupilot
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.26 KB
/
Copy pathtest_scripts.yml
File metadata and controls
49 lines (44 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: test scripts
on: [push, pull_request, workflow_dispatch]
concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-slim
strategy:
fail-fast: false # don't cancel if a job from the matrix fails
matrix:
config: [
astyle-cleanliness,
check_autotest_options,
logger_metadata,
param_parse,
param-file-validation,
python-cleanliness,
shellcheck,
validate_board_list,
]
steps:
# git checkout the PR
- uses: actions/checkout@v6
with:
submodules: 'recursive'
- uses: actions/setup-python@v6
with:
python-version: 3.x
cache: pip # caching pip dependencies
pip-install: flake8 lxml pexpect
- name: Install astyle
if: matrix.config == 'astyle-cleanliness'
shell: bash
run: |
sudo apt-get update
sudo apt-get install --yes astyle
- name: test ${{matrix.config}}
env:
CI_BUILD_TARGET: ${{matrix.config}}
shell: bash
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
Tools/scripts/build_ci.sh