mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-12-15 20:26:02 +00:00
fix: add cypress tests to CI [skip ci]
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user