Skip to content

chunithm_net: bump network timeout #293

chunithm_net: bump network timeout

chunithm_net: bump network timeout #293

Workflow file for this run

name: Deploy
on:
push:
branches:
- trunk
paths:
- ".github/workflows/deploy.yaml"
- "chunithm_net/**"
- "cogs/**"
- "database/**"
- "tests/**"
- "utils/**"
- "bot.py"
- "poetry.lock"
- "pyproject.toml"
- "web.py"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236
with:
python-version: "3.11"
cache: poetry
- name: Install dependencies
run: poetry install
- name: Run type checking
run: poetry run basedpyright
- name: Run tests
run: poetry run pytest -v --html=report.html --self-contained-html
- name: Upload test report
if: always()
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: test-report
path: report.html
if-no-files-found: error
- name: Deploy bot
uses: appleboy/ssh-action@334f9259f2f8eb3376d33fa4c684fff373f2c2a6
with:
host: ${{ secrets.SSH_HOST }}
username: chuninewbot
key: ${{ secrets.SSH_KEY }}
script: |
cd /home/chuninewbot/chuninewbot
git pull
/home/chuninewbot/.local/bin/poetry install --without dev --all-extras
/home/chuninewbot/.local/bin/poetry run alembic upgrade head
systemctl --user restart chunibot