Skip to content

Commit fb348c5

Browse files
committed
fix: repair admin backend workflow validation and test path
1 parent b5f699d commit fb348c5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/deploy-admin-backend-aws.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
- name: Run admin tests
7575
working-directory: backend-admin
7676
run: |
77+
export PYTHONPATH="$PWD"
7778
pytest -v tests/test_admin_handler.py tests/test_admin_template_security.py
7879
7980
validate-sam:
@@ -117,7 +118,7 @@ jobs:
117118
content = f.read()
118119
tree = ast.parse(content)
119120
120-
route_literals = re.findall(r'path\\s*==\\s*["\\']([^"\\']+)["\\']', content)
121+
route_literals = re.findall(r"path\\s*==\\s*['\\\"]([^'\\\"]+)['\\\"]", content)
121122
expected_routes = [
122123
"/admin/overview",
123124
"/admin/jobs",

0 commit comments

Comments
 (0)