Nightly Testing #619
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: 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 |