Skip to content

Commit c59887c

Browse files
authoredJun 3, 2024
test_*.py files are no longer executable (commaai#32610)
* test_*.py files are no longer executable * cleanup empty lines * update precommit * fixme * enable * build
1 parent 7c4b7ce commit c59887c

File tree

78 files changed

+5
-85
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+5
-85
lines changed
 

‎.github/workflows/selfdrive_tests.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ jobs:
116116
submodules: true
117117
- uses: ./.github/workflows/setup-pre-commit
118118
- uses: ./.github/workflows/setup-with-retry
119+
- name: Build openpilot
120+
run: ${{ env.RUN }} "scons -j$(nproc)"
119121
- name: pre-commit
120122
timeout-minutes: 4
121123
run: ${{ env.RUN }} "unset PYTHONWARNINGS && pre-commit run --all && chmod -R 777 /tmp/pre-commit"
@@ -143,7 +145,7 @@ jobs:
143145
$PYTEST --timeout 60 -m 'not slow' && \
144146
./selfdrive/ui/tests/create_test_translations.sh && \
145147
QT_QPA_PLATFORM=offscreen ./selfdrive/ui/tests/test_translations && \
146-
./selfdrive/ui/tests/test_translations.py"
148+
pytest ./selfdrive/ui/tests/test_translations.py"
147149
- name: "Upload coverage to Codecov"
148150
uses: codecov/codecov-action@v4
149151
with:

‎.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ repos:
8686
hooks:
8787
- id: test_translations
8888
name: test translations
89-
entry: selfdrive/ui/tests/test_translations.py
90-
language: script
89+
entry: pytest selfdrive/ui/tests/test_translations.py
90+
language: system
9191
pass_filenames: false
9292
files: '^selfdrive/ui/translations/'
9393
- repo: https://github.com/python-poetry/poetry

0 commit comments

Comments
 (0)