Run network.py weekly #17
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: Run network.py weekly | |
on: | |
schedule: | |
- cron: '0 0 * * 0' # This cron expression runs the job every Sunday at midnight | |
jobs: | |
run-network-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' # Specify the required Python version | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r network/requirements.txt # Make sure you have a requirements.txt file | |
- name: Run network.py | |
run: python network/network.py |