Last updated - 2024-03-21 22:21:18 #13
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: py | ||
on: | ||
schedule: | ||
- cron: "30 11 * * *" #runs at 11:30 UTC everyday | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout repo content | ||
uses: actions/checkout@v2 # checkout the repository content to github runner. | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 #install the python needed | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
ref: # branch | ||
my_other_branch | ||
- name: execute py script # run file | ||
run: | | ||
python rss_scraper-2.py |