Morning daily scheduler yesterday report 09h UTC #43
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: Morning daily scheduler yesterday report 09h UTC | |
on: | |
schedule: | |
- cron: '00 09 * * *' # Running at 09:00 UTC every days. | |
jobs: | |
fetch_weather: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run Unit Tests | |
run: python ./src/weather-station/test/run_unit_tests.py | |
- name: Run Script | |
env: | |
WEATHER_UNDERGROUND_STATION_ID: ${{ secrets.WEATHER_UNDERGROUND_STATION_ID }} | |
WEATHER_UNDERGROUND_API_KEY: ${{ secrets.WEATHER_UNDERGROUND_API_KEY }} | |
run: python ./src/weather-station/morning_daily_scheduler.py |