mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
.github: test_scripts: restrict to read only, only update waf submodule, don't use setup-python
This commit is contained in:
1 parent
c361002740
commit
87c2c021da
1 file changed
+13
-6
@@ -6,6 +6,9 @@ concurrency:
|
||||
group: ci-${{github.workflow}}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-slim
|
||||
@@ -26,12 +29,16 @@ jobs:
|
||||
# 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
|
||||
submodules: false
|
||||
persist-credentials: false
|
||||
|
||||
- name: checkout waf submodule
|
||||
run: git submodule update --init --recursive --depth 1 modules/waf
|
||||
|
||||
- name: install pip dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
python3 -m pip install flake8 lxml pexpect
|
||||
|
||||
- name: Install astyle
|
||||
if: matrix.config == 'astyle-cleanliness'
|
||||
|
||||
Reference in new issue
Block a user