From eff0b3a402c45625c47ff831e398aef368a7a59b Mon Sep 17 00:00:00 2001 From: skylanix Date: Mon, 25 Aug 2025 03:55:46 +0200 Subject: [PATCH] =?UTF-8?q?TEST=20=C3=A9chec=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-build.yml | 26 +++++++++++++++++++++++++- run-web.py | 2 +- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 7fdbae7..91b6619 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -54,4 +54,28 @@ jobs: context: . push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} + + - name: Test container startup + run: | + echo "Testing if the container starts successfully..." + docker run --rm -d --name test-container -p 5001:5000 \ + -e TZ=Europe/Paris \ + -e ENABLE_ZABBIX=false \ + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + + # Wait for container to be ready + sleep 10 + + # Check if container is still running + if docker ps | grep test-container; then + echo "✅ Container started successfully" + docker logs test-container + else + echo "❌ Container failed to start" + docker logs test-container + exit 1 + fi + + # Stop the test container + docker stop test-container \ No newline at end of file diff --git a/run-web.py b/run-web.py index b865860..bcb00fc 100644 --- a/run-web.py +++ b/run-web.py @@ -23,7 +23,7 @@ def start_twitch_bot(): twitchBot.begin() if __name__ == '__main__': - locale.setlocale(locale.LC_TIME, 'fr_FR.UTF-8') + locale.setlocale(locale.LC_TIME, 'fr_CH.UTF-8') jobs = [] jobs.append(threading.Thread(target=start_discord_bot))