mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 01:53:57 +08:00
pre-commit: test translations (#25695)
* add test translations to precommit
* fix test translations pre-commit hook
* revert
* fix that
* add to release files
add to release files
* fix
* don't run test on stripped dir
* fix
old-commit-hash: 6393d29b04
This commit is contained in:
2
.github/workflows/selfdrive_tests.yaml
vendored
2
.github/workflows/selfdrive_tests.yaml
vendored
@@ -62,7 +62,7 @@ jobs:
|
||||
cp .pylintrc $STRIPPED_DIR
|
||||
cp mypy.ini $STRIPPED_DIR
|
||||
cd $STRIPPED_DIR
|
||||
${{ env.RUN }} "pre-commit run --all"
|
||||
${{ env.RUN }} "SKIP=test_translations pre-commit run --all"
|
||||
|
||||
build_all:
|
||||
name: build all
|
||||
|
||||
@@ -70,3 +70,10 @@ repos:
|
||||
- --quiet
|
||||
- --force
|
||||
- -j8
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: test_translations
|
||||
name: test translations
|
||||
entry: selfdrive/ui/tests/test_translations.py
|
||||
language: script
|
||||
pass_filenames: false
|
||||
|
||||
@@ -305,6 +305,8 @@ selfdrive/ui/soundd/soundd
|
||||
selfdrive/ui/soundd/.gitignore
|
||||
selfdrive/ui/translations/*.ts
|
||||
selfdrive/ui/translations/languages.json
|
||||
selfdrive/ui/update_translations.py
|
||||
selfdrive/ui/tests/test_translations.py
|
||||
|
||||
selfdrive/ui/qt/*.cc
|
||||
selfdrive/ui/qt/*.h
|
||||
|
||||
Reference in New Issue
Block a user