Merge branch 'bugfix/gh_python_lint' into 'master'
gh-action:fix python lint See merge request espressif/esp-idf!7149
This commit is contained in:
commit
2cb7534bc5
4 changed files with 4 additions and 5 deletions
2
.github/workflows/python_lint.yml
vendored
2
.github/workflows/python_lint.yml
vendored
|
@ -4,7 +4,7 @@ name: Python CI
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- "*.py"
|
- "**.py"
|
||||||
- "requirements.txt"
|
- "requirements.txt"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
@ -42,8 +42,7 @@ check_python_style:
|
||||||
- flake8_output.txt
|
- flake8_output.txt
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
script:
|
script:
|
||||||
# run it only under Python 3 (it is very slow under Python 2)
|
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh python -m flake8 --config=$IDF_PATH/.flake8 --output-file=flake8_output.txt --tee --benchmark $IDF_PATH
|
||||||
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.4.8 python -m flake8 --config=$IDF_PATH/.flake8 --output-file=flake8_output.txt --tee --benchmark $IDF_PATH
|
|
||||||
|
|
||||||
check_kconfigs:
|
check_kconfigs:
|
||||||
extends: .check_job_template_with_filter
|
extends: .check_job_template_with_filter
|
||||||
|
|
|
@ -454,7 +454,7 @@ UT_034:
|
||||||
|
|
||||||
UT_035:
|
UT_035:
|
||||||
extends: .unit_test_template
|
extends: .unit_test_template
|
||||||
parallel: 22
|
parallel: 23
|
||||||
tags:
|
tags:
|
||||||
- ESP32S2BETA_IDF
|
- ESP32S2BETA_IDF
|
||||||
- UT_T1_1
|
- UT_T1_1
|
||||||
|
|
|
@ -248,7 +248,7 @@ class IDFApp(App.BaseApp):
|
||||||
flash_settings["encrypt"] = "CONFIG_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT" in sdkconfig_dict
|
flash_settings["encrypt"] = "CONFIG_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT" in sdkconfig_dict
|
||||||
|
|
||||||
# make file offsets into integers, make paths absolute
|
# make file offsets into integers, make paths absolute
|
||||||
flash_files = [(int(offs, 0), os.path.join(self.binary_path, path.strip())) for (offs, path) in flash_files]
|
flash_files = [(int(offs, 0), os.path.join(self.binary_path, file_path.strip())) for (offs, file_path) in flash_files]
|
||||||
|
|
||||||
return flash_files, flash_settings
|
return flash_files, flash_settings
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue