Skip to content

Github actions cost#3

Draft
luigipascal wants to merge 1 commit intomainfrom
cursor/github-actions-cost-7d70
Draft

Github actions cost#3
luigipascal wants to merge 1 commit intomainfrom
cursor/github-actions-cost-7d70

Conversation

@luigipascal
Copy link
Owner

Optimize GitHub Actions workflows to significantly reduce compute costs.

This PR addresses several cost drivers:

  1. validate-chapters.yml: Reduced the Python matrix from 3 versions to 1, as it's for validation, not compatibility testing. This cuts compute for this workflow by ~67%.
  2. deploy-site.yml: Added path filters (docs/**, mkdocs.yml, chapters/*/README.md) to prevent unnecessary deployments when only non-documentation code changes.
  3. Dependency Caching: Enabled pip caching in both workflows to avoid re-downloading packages on every run.
  4. Concurrency Control: Added concurrency groups with cancel-in-progress: true to prevent redundant runs from queuing up on rapid pushes.
    These changes are estimated to reduce overall Actions minutes by 60-70%.

Open in Web Open in Cursor 

…rrency

validate-chapters.yml:
- Remove 3-version Python matrix (3.10/3.11/3.12) — use single 3.11
  (this is content/structure validation, not a library compatibility test)
- Add pip cache via setup-python cache option
- Add concurrency group to cancel superseded runs

deploy-site.yml:
- Add path filters (docs/**, mkdocs.yml, chapters/*/README.md) to skip
  deploys when no documentation changed
- Add pip cache via setup-python cache option
- Add concurrency group to cancel superseded runs

Co-authored-by: Luigi Pascal Rondanini  <luigi@rondanini.com>
@cursor
Copy link
Contributor

cursor bot commented Mar 7, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@netlify
Copy link

netlify bot commented Mar 7, 2026

Deploy Preview for chaptersberta ready!

Name Link
🔨 Latest commit 48534d2
🔍 Latest deploy log https://app.netlify.com/projects/chaptersberta/deploys/69abcb5299448b00084ccb80
😎 Deploy Preview https://deploy-preview-3--chaptersberta.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants