Skip to content

Nightly Testing

Nightly Testing #622

Workflow file for this run

name: Nightly Testing
on:
schedule:
# Set with UTC time
- cron: '15 05 * * *'
jobs:
weather-check:
runs-on: ubuntu-latest
env:
OPEN_WEATHER_API_KEY: ${{ secrets.OPEN_WEATHER_API_KEY }}
XDG_CACHE_HOME: /tmp/.cache
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Configure poetry
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "poetry"
- name: Make cache directory
run: mkdir -p $XDG_CACHE_HOME
- name: Install Dependencies
run: poetry install --no-dev
- name: current
run: |
poetry run weather zip 98109
- name: one_call
run: |
poetry run weather zip 98109 -f daily