.github/workflows/weekly_update.yml #18
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: Weekly Python Script Run | |
on: | |
schedule: # delete to disable workflow | |
# * is a wildcard that matches any value | |
# 0 0 * * 0 means every Sunday at midnight | |
- cron: '0 0 * * 0' | |
workflow_dispatch: # enable manual runs | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Scra | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Debug Python environment | |
run: | | |
which python | |
python -c "import sys; print(sys.path)" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r resources/requirements.txt # Install required packages | |
- name: Run main_Oracle.py | |
run: python main_Oracle.py |