fix: add cypress tests to CI [skip ci]

This commit is contained in:
Jayden Pyles
2025-05-10 11:29:20 -05:00
parent ee8047ac78
commit e8d80c1a77
2 changed files with 6 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ runs:
- name: Setup Docker project - name: Setup Docker project
shell: bash shell: bash
run: docker compose up -d run: make build up-dev
- name: Install dependencies - name: Install dependencies
shell: bash shell: bash

View File

@@ -8,6 +8,8 @@ import logging
import sys import sys
import traceback import traceback
from api.backend.database.startup import init_database
logging.basicConfig(stream=sys.stdout, level=logging.INFO) logging.basicConfig(stream=sys.stdout, level=logging.INFO)
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)
@@ -41,6 +43,9 @@ async def process_job():
async def main(): async def main():
LOG.info("Starting job worker...") LOG.info("Starting job worker...")
init_database()
while True: while True:
await process_job() await process_job()
await asyncio.sleep(5) await asyncio.sleep(5)