Update start_main.py #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Hello World Action | |
#on: [push] | |
on: | |
push: # Этот триггер остается, запускается на push | |
workflow_dispatch: # Добавляем поддержку ручного запуска через API | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Upgrade pip and install requests | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install requests | |
pip install aiohttp | |
#pip install sys | |
#pip install subprocess | |
#pip install time | |
#pip install random | |
#pip install asyncio | |
- name: Run hello.py | |
#run: python hello.py | |
run: python start_main.py | |