-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 852 Bytes
/
Copy pathqa_check.yml
File metadata and controls
38 lines (31 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Telegram Q&A Bot
on:
schedule:
- cron: '*/20 * * * *'
workflow_dispatch:
concurrency:
group: telegram-qa-bot
cancel-in-progress: true
jobs:
run-qa:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Telegram Q&A Agent
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
run: |
python qa_agent.py