home-tg-bot/.gitea/workflows/publish.yml

26 lines
765 B
YAML

name: test python
run-name: qwe
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.12', 'pypy3' ]
name: Python ${{ matrix.python-version }} sample
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
env:
TGBOT_CONFIG__TG__TOKEN: ${{ TGBOT_CONFIG__TG__TOKEN }}
TGBOT_CONFIG__ZBX__TOKEN: ${{ TGBOT_CONFIG__ZBX__TOKEN }}
TGBOT_CONFIG__ZBX__URL: ${{ TGBOT_CONFIG__ZBX__URL }}
- run: python -m pip install --upgrade pip
- run: pip install -r requirements.txt
- run: python tg-bot-app/main.py