Тесты запуска бота (В разработке!)
This commit is contained in:
32
.gitea/workflows/ci.yml
Normal file
32
.gitea/workflows/ci.yml
Normal 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
|
||||
Reference in New Issue
Block a user