Skip to content

Commit

Permalink
Merge pull request #63 from dataforgoodfr/weekly-series-dataset-update
Browse files Browse the repository at this point in the history
New series workflow to run on Sundays at 4:15 UTC
  • Loading branch information
kaaloo authored May 9, 2024
2 parents e35d73d + fcb537f commit 6a7c34d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/movies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: Gr1N/setup-poetry@v9
with:
poetry-version: "1.7.1"
- run: poetry install --no-root
- run: poetry install
- run: poetry run python -m observatoire.tmdb.movies
env:
# Hugging Face credentials
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/series.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update Movies 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

0 comments on commit 6a7c34d

Please sign in to comment.