From 78bcb36f7832dcaf8b4bbf6158cc605f02643646 Mon Sep 17 00:00:00 2001 From: Rui Hu Date: Thu, 27 Mar 2025 21:09:02 +0800 Subject: [PATCH] fix(General): fix broken pipeline --- .forgejo/workflows/coverage-check.yaml | 2 +- .forgejo/workflows/publish-python.yaml | 4 ++-- pyproject.toml | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/coverage-check.yaml b/.forgejo/workflows/coverage-check.yaml index 2f6c979..fb41943 100644 --- a/.forgejo/workflows/coverage-check.yaml +++ b/.forgejo/workflows/coverage-check.yaml @@ -16,7 +16,7 @@ jobs: # need to setup node and git - run: | apt-get update - apt-get install -y nodejs git curl + apt-get install -y nodejs git curl libsqlite3-0 # check out code and set up python - uses: actions/checkout@v4 - uses: https://github.com/actions/setup-python@v5 diff --git a/.forgejo/workflows/publish-python.yaml b/.forgejo/workflows/publish-python.yaml index 97aaa29..249aaac 100644 --- a/.forgejo/workflows/publish-python.yaml +++ b/.forgejo/workflows/publish-python.yaml @@ -19,7 +19,7 @@ jobs: # need to setup node and git - run: | apt-get update - apt-get install -y nodejs git + apt-get install -y nodejs git libsqlite3-0 # check out code - uses: actions/checkout@v4 - uses: https://github.com/actions/setup-python@v5 @@ -31,7 +31,7 @@ jobs: - run: pytest # replace timestamp building dev version - name: Add timestamp to version - if: github.head_ref != '' && github.head_ref != 'master' + if: github.head_ref != 'master' run: | sed -i -E "s/(version = \"[^\"]+)(-dev)DT\"/\1\2$(date -u +'%Y%m%d%H%M%S')\"/" pyproject.toml cat pyproject.toml diff --git a/pyproject.toml b/pyproject.toml index bf2e092..326ffe4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "amq_adapter" -version = "0.2.2" +version = "0.2.2-devDT" description = "Adapter for RabbitMQ to integrate a CleverThis python-code Service with CleverMicro platform" readme = "README.md" authors = [ @@ -19,6 +19,7 @@ classifiers = [ ] requires-python = ">=3.11" dependencies = [ + "aio-pika~=9.5.5", "aiohttp~=3.11.11", "pika~=1.3.2", "fastapi==0.115.6",