Fix(backend): Updated Github CI

This commit is contained in:
minhtrannhat 2023-07-14 15:58:58 -04:00
parent 6859f0c0f2
commit eab8670780
Signed by: minhtrannhat
GPG Key ID: E13CFA85C53F8062
3 changed files with 33 additions and 45 deletions

View File

@ -2,7 +2,7 @@ name: CI
on: on:
push: push:
branches: [master] branches: [backend, frontend]
pull_request: pull_request:
branches: [master] branches: [master]
workflow_dispatch: workflow_dispatch:

View File

@ -109,7 +109,7 @@ def recreate_db() -> None:
f"CREATE DATABASE {db_url.path.removeprefix('/')}", f"CREATE DATABASE {db_url.path.removeprefix('/')}",
], ],
) )
call( call( # nosec
[ [
"psql", "psql",
"-U", "-U",

View File

@ -1,35 +1,22 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<head>
<title>Todo - email</title> <title>Todo - email</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head> </head>
<body <body style="
style="
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
font-size: 14px; font-size: 14px;
font-style: normal; font-style: normal;
margin: 0; margin: 0;
" ">
> <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
<table
width="100%"
height="100%"
cellpadding="0"
cellspacing="0"
border="0"
>
<tr> <tr>
<td align="center"> <td align="center">
<table <table height="100%" cellpadding="20" cellspacing="0" border="0" style="max-width: 540px">
height="100%"
cellpadding="20"
cellspacing="0"
border="0"
style="max-width: 540px"
>
<tr> <tr>
<td align="left" width="540"> <td align="left" width="540">
{% block welcome %} Hello, {% endblock %} {% block welcome %} Hello, {% endblock %}
@ -47,5 +34,6 @@
</td> </td>
</tr> </tr>
</table> </table>
</body> </body>
</html> </html>