Update Series Dataset #12
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: Update Series Dataset | |
on: | |
# Run this workflow on Sundays at 4:15 UTC | |
schedule: [{ cron: "15 4 * * 0" }] | |
# Run this workflow when triggered manually in GitHub’s UI. | |
workflow_dispatch: {} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11.4" | |
- name: Setup Poetry | |
uses: Gr1N/setup-poetry@v9 | |
with: | |
poetry-version: "1.7.1" | |
- run: poetry install | |
- run: poetry run python -m observatoire.tmdb.series | |
env: | |
# Hugging Face credentials | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
# TMDB credentials | |
TMDB_API_KEY: ${{ secrets.TMDB_API_KEY }} | |
TMDB_MAX_RETRIES: 500 |