mirror of
https://github.com/EDeev/vkrepost_to_tg.git
synced 2026-10-07 20:49:50 +03:00
23 lines
517 B
YAML
23 lines
517 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
- run: pip install -r requirements-dev.txt
|
|
- run: ruff check --select E9,F code tests
|
|
- run: pytest -q
|
|
- name: Бот импортируется
|
|
working-directory: code
|
|
env:
|
|
BOT_TOKEN: "123456:TEST"
|
|
run: python -c "import bot"
|