mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 03:03:57 +08:00
run pre-commit in release CI (#25158)
* run pre-commit in release * add pylintrc and init files * build first * add mypy ini * limit amount of debug scripts shipped in release * add python version? * add more missing __init__.py * excluded rednose for cppcheck * remove files before dirty check
This commit is contained in:
7
.github/workflows/selfdrive_tests.yaml
vendored
7
.github/workflows/selfdrive_tests.yaml
vendored
@@ -58,6 +58,9 @@ jobs:
|
||||
run: |
|
||||
TARGET_DIR=$STRIPPED_DIR release/build_devel.sh
|
||||
cp Dockerfile.openpilot_base $STRIPPED_DIR
|
||||
cp .pre-commit-config.yaml $STRIPPED_DIR
|
||||
cp .pylintrc $STRIPPED_DIR
|
||||
cp mypy.ini $STRIPPED_DIR
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
eval "$BUILD"
|
||||
@@ -66,6 +69,10 @@ jobs:
|
||||
run: |
|
||||
cd $STRIPPED_DIR
|
||||
${{ env.RUN }} "CI=1 python selfdrive/manager/build.py && \
|
||||
pre-commit run --all && \
|
||||
rm .pre-commit-config.yaml && \
|
||||
rm .pylintrc && \
|
||||
rm mypy.ini && \
|
||||
release/check-dirty.sh && \
|
||||
python -m unittest discover selfdrive/car"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user