2024-09-24 20:41:15 +00:00
|
|
|
name: test python
|
2024-09-24 20:50:24 +00:00
|
|
|
run-name: qwe
|
2024-09-24 18:44:56 +00:00
|
|
|
on: [push]
|
2024-09-24 20:41:15 +00:00
|
|
|
|
2024-09-24 18:44:56 +00:00
|
|
|
jobs:
|
2024-09-24 20:41:15 +00:00
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-09-24 20:43:13 +00:00
|
|
|
python-version: [ '3.12', 'pypy3' ]
|
2024-09-24 20:41:15 +00:00
|
|
|
name: Python ${{ matrix.python-version }} sample
|
2024-09-24 18:44:56 +00:00
|
|
|
steps:
|
2024-09-24 20:41:15 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
architecture: x64
|
2024-09-26 18:19:51 +00:00
|
|
|
- name: pip upgrade
|
2024-09-24 21:34:24 +00:00
|
|
|
run: python -m pip install --upgrade pip
|
|
|
|
- name: install requirements
|
|
|
|
run: pip install -r requirements.txt
|
2024-09-26 18:19:51 +00:00
|
|
|
- name: start bot
|
2024-09-24 21:38:40 +00:00
|
|
|
env:
|
|
|
|
TGBOT_CONFIG__TG__TOKEN: ${{ secrets.TGBOT_CONFIG__TG__TOKEN }}
|
|
|
|
TGBOT_CONFIG__ZBX__TOKEN: ${{ secrets.TGBOT_CONFIG__ZBX__TOKEN }}
|
|
|
|
TGBOT_CONFIG__ZBX__URL: ${{ secrets.TGBOT_CONFIG__ZBX__URL }}
|
2024-09-24 21:32:29 +00:00
|
|
|
run: |
|
2024-09-26 18:35:16 +00:00
|
|
|
docker build -t git.sm8255082.ru/sergey/home-tg-bot:latest .
|
2024-09-26 18:33:45 +00:00
|
|
|
docker push git.sm8255082.ru/sergey/home-tg-bot:latest
|