Skip to content

run castro_weather.py #3

run castro_weather.py

run castro_weather.py #3

Workflow file for this run

name: run castro_wheather.py
on:
schedule:
- cron: '0 */1 * * *' # Runs every hour.
jobs:
fetch_weather:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Script
env:
STATION_ID: ${{ secrets.STATION_ID }}
API_KEY: ${{ secrets.API_KEY }}
run: python castro_wheather.py "$STATION_ID" "$API_KEY"