name: CI on: push: branches: [main] pull_request: jobs: check: runs-on: ubuntu-latest services: postgres: image: postgres:16-alpine env: POSTGRES_PASSWORD: postgres POSTGRES_DB: yacal_test ports: ["5432:5432"] options: >- --health-cmd "pg_isready -U postgres" --health-interval 5s --health-retries 10 env: TEST_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/yacal_test 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 scripts - run: pytest -q - name: Бот импортируется working-directory: code env: BOT_TOKEN: "123456:TEST" DATABASE_URL: postgresql://postgres:postgres@localhost:5432/yacal_test run: python -c "import bot"