mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 03:03:57 +08:00
pre-commit: bring back some checks (#33196)
* add this
* add this
* nice ...
* 120
* remove
* no remote
* 0
* this
* no submodules
* like this
* try this
* validate
* like this
* split
* pass files
* no par
* check exist
* no build
* fix
* 24.04
* default
* test failure
* continue
* actually fail
* clean
* import
* fix
* line
* mypy
* clean
* simpler
* final
* better
* final clean
* not true
old-commit-hash: 30467b44cd
This commit is contained in:
26
.github/workflows/selfdrive_tests.yaml
vendored
26
.github/workflows/selfdrive_tests.yaml
vendored
@@ -61,13 +61,20 @@ jobs:
|
||||
cd $STRIPPED_DIR
|
||||
${{ env.RUN }} "release/check-dirty.sh && \
|
||||
MAX_EXAMPLES=5 $PYTEST -m 'not slow' selfdrive/car"
|
||||
- name: static analysis
|
||||
- name: Getting modified files
|
||||
timeout-minutes: 1
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
git fetch --unshallow --recurse-submodules=no origin master:master
|
||||
ALL_FILES=$(git diff --name-only --cached --diff-filter=AM $(git merge-base HEAD master))
|
||||
echo FILES=$(echo $ALL_FILES) >> $GITHUB_ENV
|
||||
- name: Static analysis
|
||||
timeout-minutes: 1
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
cp pyproject.toml $STRIPPED_DIR
|
||||
cd $STRIPPED_DIR
|
||||
${{ env.RUN }} "scripts/lint.sh"
|
||||
${{ env.RUN }} "scripts/lint.sh $FILES"
|
||||
|
||||
build:
|
||||
strategy:
|
||||
@@ -140,16 +147,17 @@ jobs:
|
||||
runs-on: ${{ ((github.repository == 'commaai/openpilot') &&
|
||||
((github.event_name != 'pull_request') ||
|
||||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-latest' }}
|
||||
env:
|
||||
PYTHONWARNINGS: default
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- uses: ./.github/workflows/setup-with-retry
|
||||
- name: Build openpilot
|
||||
run: ${{ env.RUN }} "scons -j$(nproc)"
|
||||
- name: static analysis
|
||||
- name: Setup
|
||||
run: tools/op.sh setup
|
||||
- name: Get ancestor commit
|
||||
run: git fetch --unshallow --recurse-submodules=no origin master:master
|
||||
- name: Static analysis
|
||||
timeout-minutes: 1
|
||||
run: ${{ env.RUN }} "scripts/lint.sh"
|
||||
run: tools/op.sh lint
|
||||
|
||||
unit_tests:
|
||||
name: unit tests
|
||||
|
||||
Reference in New Issue
Block a user