Repository navigation
feat: run the action itself in CI - #172
Merged
Merged
Conversation
Closes #149. tests.yml only ran pytest against app/, so a broken action.yml input, working-directory, or dependency could reach every consumer of drkrillo/good-first-issues@main while all 27 tests stayed green. Adds a smoke-test job that runs 'uses: ./' against a known target and asserts the output file exists and has more than just a header row, per drkrillo's spec in the issue. Design per discussion in #149: - Runs on PRs (not just pushes to main) since a read-only GITHUB_TOKEN is sufficient here (the action only reads public issues), and PRs catch a break before it reaches main. - Scoped to changes in action.yml, app/**, and requirements.txt (plus workflow_dispatch), so it doesn't hit the GitHub API on every push. - Targets drkrillo (this repo's own owner/backlog) rather than a large org: small and stable, and dogfoods the project's own premise of always having open good-first-issue-labeled work. - Zero matching issues is a hard failure, not a silent pass. Verified by running the underlying update_issues module locally against usernames=drkrillo with a real token: produced 3 lines (header + 2 real issues), which is what this job's assertion checks for.
drkrillo
approved these changes
Sep 25, 2026
Owner
|
@tharunsridhar PR is looking great! I'll run a workflow once merged to test it out, but it seems all correct. I'll need a I am thinking on new issues to imrpove the workflows, such as pointing at the correct version instead of main. I'll be opening that up soon. In case you are interested, would you like me to tag you there ? No pressure, of course. Thanks for contributing :) |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
tests.ymlonly runs pytest againstapp/, so nothing exercisesaction.ymlitself, the thing people actually consume viadrkrillo/good-first-issues@main. A broken input, wrongworking-directory, or a dependency that stops installing could reach every consumer while all tests stay green.Adds a smoke-test job that runs
uses: ./against a known target and asserts the output file exists with more than just a header row.Per our discussion in the issue:
main, scoped toaction.yml/app/**/requirements.txtchanges, plusworkflow_dispatch— a read-onlyGITHUB_TOKENis enough since the action only reads public issues.drkrillo(small, stable, and it's your own backlog) rather than a large org.Verified by running
app.update_issueslocally againstusernames=drkrillowith a real token — produced 3 lines (header + 2 real issues), confirming the assertion this job runs would pass.Related Issue
Closes #149
Checklist