From b4efbef07d2f9306171d3faf2ee027f2d170cfda Mon Sep 17 00:00:00 2001 From: terapevt1981 Date: Mon, 11 Nov 2024 13:53:49 +0100 Subject: [PATCH] unified GCP deployment workflow --- .github/.DS_Store | Bin 0 -> 6148 bytes .github/workflows/.DS_Store | Bin 0 -> 6148 bytes .github/workflows/ci.yml | 159 ------------------ .../create-artifact-repositories.yml | 93 ---------- .github/workflows/docker-build.yml | 76 --------- .github/workflows/gcp-deploy.yml | 150 ++++++++--------- telegram_bot_service/__init__.py | 1 + .../handlers/message_handler.py | 14 +- translation_service/__init__.py | 1 + .../{test => tests}/test_translation.py | 0 transport_service/__init__.py | 1 + .../{test => tests}/test_transport.py | 0 12 files changed, 89 insertions(+), 406 deletions(-) create mode 100644 .github/.DS_Store create mode 100644 .github/workflows/.DS_Store delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/create-artifact-repositories.yml delete mode 100644 .github/workflows/docker-build.yml create mode 100644 telegram_bot_service/__init__.py create mode 100644 translation_service/__init__.py rename translation_service/{test => tests}/test_translation.py (100%) create mode 100644 transport_service/__init__.py rename transport_service/{test => tests}/test_transport.py (100%) diff --git a/.github/.DS_Store b/.github/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..0ff23cb35e8fd06242bbbb1815eab412cefb1b39 GIT binary patch literal 6148 zcmeHK%}N6?5T3Nvb}2#+iXH=A3)Wf+#mlnR7jQ)nDz(d2UAk_h+q#ER*sH#fZ{qVf zlcZv41y3S&1}0xJKO6F8$s_JpDq+FFW`&TSbV&-Ys{p-k!BZTi<3{6M6pE#d&2rf(SIam4gUbAIe>_RO z{^*KE=Ss!Fyx$KlqCwWHZJ(%Q+>esMNGC+$07I@Xqa;+BrzT05>RjJA9H-*+YP-{E zv(u@|c57Cb(@wKdm#w4rZ01yU_79HFdc*iJQ7?u~fj^#>EsJw_#m?hj z=b7^iMrME+U=AgC-q>o*BPmXBPH_BJ}KNmpUATYmi%JfEie1 zplF6Qs{g0ozyBALc*G1a1OJKvQR@0#50_+X>(b(=)=Jb{R1%8I4SuFzN0(xZrBb|y bss-(mI*6{t+#p&|_#&Wb;D#CaRR%r)0Gv&# literal 0 HcmV?d00001 diff --git a/.github/workflows/.DS_Store b/.github/workflows/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 None: + """ + Асинхронная функция обработки входящего сообщения. + + Args: + update (Update): Объект обновления от Telegram. + context (CallbackContext): Контекст выполнения. + """ try: message = update.message.text user_id = update.effective_user.id diff --git a/translation_service/__init__.py b/translation_service/__init__.py new file mode 100644 index 0000000..d5861df --- /dev/null +++ b/translation_service/__init__.py @@ -0,0 +1 @@ +from .config import * \ No newline at end of file diff --git a/translation_service/test/test_translation.py b/translation_service/tests/test_translation.py similarity index 100% rename from translation_service/test/test_translation.py rename to translation_service/tests/test_translation.py diff --git a/transport_service/__init__.py b/transport_service/__init__.py new file mode 100644 index 0000000..d5861df --- /dev/null +++ b/transport_service/__init__.py @@ -0,0 +1 @@ +from .config import * \ No newline at end of file diff --git a/transport_service/test/test_transport.py b/transport_service/tests/test_transport.py similarity index 100% rename from transport_service/test/test_transport.py rename to transport_service/tests/test_transport.py