mirror of
https://github.com/frappe/frappe.git
synced 2024-06-13 04:42:20 +00:00
Merge pull request #26457 from ankush/ci_skip
fix(DX): Don't run CI if there are no tests
This commit is contained in:
commit
513957ee40
|
@ -17,6 +17,7 @@ from frappe.translate import (
|
|||
extract_messages_from_javascript_code,
|
||||
extract_messages_from_python_code,
|
||||
get_language,
|
||||
get_messages_for_app,
|
||||
get_parent_language,
|
||||
get_translation_dict_from_file,
|
||||
)
|
||||
|
@ -314,6 +315,8 @@ def verify_translation_files(app):
|
|||
lang = file.stem # basename of file = lang
|
||||
get_translation_dict_from_file(file, lang, app, throw=True)
|
||||
|
||||
get_messages_for_app(app)
|
||||
|
||||
|
||||
expected_output = [
|
||||
("Warning: Unable to find {0} in any table related to {1}", "This is some context", 2),
|
||||
|
|
|
@ -659,6 +659,11 @@ jobs:
|
|||
- name: Clone
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Find tests
|
||||
run: |
|
||||
echo "Finding tests"
|
||||
grep -rn "def test" > /dev/null
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
|
|
|
@ -66,7 +66,7 @@ def validate_template(html):
|
|||
try:
|
||||
jenv.from_string(html)
|
||||
except TemplateSyntaxError as e:
|
||||
frappe.throw(frappe._(f"Syntax error in template as line {e.lineno}: {e.message}"))
|
||||
frappe.throw(f"Syntax error in template as line {e.lineno}: {e.message}")
|
||||
|
||||
|
||||
def render_template(template, context=None, is_path=None, safe_render=True):
|
||||
|
|
Loading…
Reference in New Issue
Block a user