mirror of
https://github.com/vinta/awesome-python.git
synced 2026-05-07 00:14:48 -05:00
[PR #2972] [MERGED] ci: consolidate star fetch into deploy workflow with Actions cache #11304
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/2972
Author: @vinta
Created: 3/18/2026
Status: ✅ Merged
Merged: 3/18/2026
Merged by: @vinta
Base:
master← Head:feature/fetch-stats-workflow📝 Commits (10+)
ab18c7erefactor: reformat build.py to Black style and add llms.txt outputb6d1bf9ci: use uv dependency groups and Makefile target for deploy workflowd65c6ccrefactor: rename fetch_stats target and remove cache age gatingbbe145cci: add workflow to fetch and commit GitHub stars dailybfed6a5ci: trigger deploy after fetch-github-stars workflow succeeds3c3f371fix: use canonical GitHub Actions bot email with numeric ID0d9dfb2ci: consolidate star fetch into deploy workflow using Actions cache4845157gitignore website/data6148c13feat: skip fetching repos whose cache entry is still fresh957d685ci: run fetch-stars step on every workflow trigger📊 Changes
7 files changed (+296 additions, -3227 deletions)
View changed files
📝
.github/workflows/deploy-website.yml(+34 -2)📝
.gitignore(+1 -0)📝
Makefile(+1 -1)📝
website/build.py(+165 -75)➖
website/data/github_stars.json(+0 -3146)📝
website/fetch_github_stars.py(+3 -3)📝
website/tests/test_fetch_github_stars.py(+92 -0)📄 Description
Summary
actions/cacheto persistwebsite/data/github_stars.jsonbetween runsCACHE_MAX_AGE_HOURS = 12staleness check so fresh data isn't re-fetched unnecessarilypushandschedule) but the script skips repos cached within 12 hoursChanges
.github/workflows/deploy-website.yml— removedworkflow_run, addedschedulecron, cache restore/save/verify steps.github/workflows/fetch-github-stars.yml— deletedwebsite/fetch_github_stars.py— addedCACHE_MAX_AGE_HOURS = 12withtotal_seconds()/3600(avoids.daysrounding bug)website/data/github_stars.json— untracked + gitignoredTest plan
uv run pytest website/tests/ -v— all 96 tests pass🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.