Python application #13858
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: Python application | |
on: | |
schedule: | |
- cron: '00 */5 * * *' | |
workflow_dispatch: | |
inputs: | |
manualrun: | |
description: 'Manually run workflow' | |
required: true | |
#push: | |
# branches: | |
# - master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; pip install pymongo[srv]; fi | |
- name: html parser | |
env: | |
MONGO: ${{ secrets.MONGO }} | |
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }} | |
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }} | |
TWITTER_API_SECRET: ${{ secrets.TWITTER_API_SECRET }} | |
TWITTER_TOKEN: ${{ secrets.TWITTER_TOKEN }} | |
TWITTER_TOKEN_SECRET: ${{ secrets.TWITTER_TOKEN_SECRET }} | |
run: | | |
python html_proc.py | |
git status |