2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 11:35:41 +00:00

Add workflow to ensure that the python bindings build whenever there's a push to master

This commit is contained in:
Oliver
2021-06-22 20:26:55 +10:00
parent da311fbab7
commit fcd38c16d8
2 changed files with 49 additions and 2 deletions

View File

@ -80,7 +80,7 @@ def heartbeat():
try:
from django_q.models import Success
logger.warning("Could not perform heartbeat task - App registry not ready")
logger.info("Could not perform heartbeat task - App registry not ready")
except AppRegistryNotReady:
return
@ -105,7 +105,7 @@ def delete_successful_tasks():
try:
from django_q.models import Success
except AppRegistryNotReady:
logger.warning("Could not perform 'delete_successful_tasks' - App registry not ready")
logger.info("Could not perform 'delete_successful_tasks' - App registry not ready")
return
threshold = datetime.now() - timedelta(days=30)
@ -126,6 +126,7 @@ def check_for_updates():
import common.models
except AppRegistryNotReady:
# Apps not yet loaded!
logger.info("Could not perform 'check_for_updates' - App registry not ready")
return
response = requests.get('https://api.github.com/repos/inventree/inventree/releases/latest')
@ -172,6 +173,7 @@ def update_exchange_rates():
from django.conf import settings
except AppRegistryNotReady:
# Apps not yet loaded!
logger.info("Could not perform 'update_exchange_rates' - App registry not ready")
return
except:
# Other error?