Revert "pre-commit: bring back some checks (#33196)" (#33216)

This reverts commit 4b356147185aa1d772947e4ec7b54a3e6e523f9d.
old-commit-hash: 3af774725f568ab2289fed92b820e89929950136
This commit is contained in:
Maxime Desroches
2024-08-06 21:48:56 -07:00
committed by GitHub
parent 5baf136b11
commit dbccf5c922
4 changed files with 14 additions and 133 deletions
+9 -17
View File
@@ -61,20 +61,13 @@ jobs:
cd $STRIPPED_DIR
${{ env.RUN }} "release/check-dirty.sh && \
MAX_EXAMPLES=5 $PYTEST -m 'not slow' selfdrive/car"
- 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
- name: static analysis
timeout-minutes: 1
run: |
cd $GITHUB_WORKSPACE
cp pyproject.toml $STRIPPED_DIR
cd $STRIPPED_DIR
${{ env.RUN }} "scripts/lint.sh $FILES"
${{ env.RUN }} "scripts/lint.sh"
build:
strategy:
@@ -147,17 +140,16 @@ 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
- name: Setup
run: tools/op.sh setup
- name: Get ancestor commit
run: git fetch --unshallow --recurse-submodules=no origin master:master
- name: Static analysis
with:
submodules: true
- uses: ./.github/workflows/setup-with-retry
- name: Build openpilot
run: ${{ env.RUN }} "scons -j$(nproc)"
- name: static analysis
timeout-minutes: 1
run: tools/op.sh lint
run: ${{ env.RUN }} "scripts/lint.sh"
unit_tests:
name: unit tests