Тесты запуска бота (В разработке!)

This commit is contained in:
2026-02-23 14:59:37 +07:00
parent 922ee0d986
commit b23fc81eac

32
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,32 @@
name: Bot CI
on:
push:
branches: [ main ]
pull_request:
jobs:
test-bot:
runs-on: ubuntu-latest
env:
BOT_TOKEN: test_token
DATABASE_URL: sqlite+aiosqlite:///./test.db
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run bot (startup test)
run: |
timeout 10s python main.py