From 038596776a5aeedbbbb4fd635e60510336b3c8e4 Mon Sep 17 00:00:00 2001 From: anti Date: Mon, 20 Apr 2026 12:54:03 -0400 Subject: [PATCH] feat(ci): added live mysql service on test-live --- .gitea/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c4c039f..d35eb97 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -64,6 +64,19 @@ jobs: strategy: matrix: python-version: ["3.11"] + services: + mysql: + image: mysql:8.0 + env: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: decnet_test + ports: + - 3307:3306 + options: >- + --health-cmd="mysqladmin ping -h 127.0.0.1" + --health-interval=10s + --health-timeout=5s + --health-retries=5 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -71,6 +84,12 @@ jobs: python-version: ${{ matrix.python-version }} - run: pip install -e .[dev] - run: pytest -m live + env: + DECNET_MYSQL_HOST: 127.0.0.1 + DECNET_MYSQL_PORT: 3307 + DECNET_MYSQL_USER: root + DECNET_MYSQL_PASSWORD: root + DECNET_MYSQL_DATABASE: decnet_test test-fuzz: name: Test (Fuzz)