Skip to content

feat: run the action itself in CI - #172

Merged
drkrillo merged 1 commit into
drkrillo:mainfrom
tharunsridhar:feat/action-smoke-test
Sep 25, 2026
Merged

drkrillo merged 1 commit into
drkrillo:mainfrom
tharunsridhar:feat/action-smoke-test

Conversation

@tharunsridhar

Copy link
Copy Markdown
Contributor

What does this PR do?

tests.yml only runs pytest against app/, so nothing exercises action.yml itself, the thing people actually consume via drkrillo/good-first-issues@main. A broken input, wrong working-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:

  • Runs on PRs and pushes to main, scoped to action.yml/app/**/requirements.txt changes, plus workflow_dispatch — a read-only GITHUB_TOKEN is enough since the action only reads public issues.
  • Targets drkrillo (small, stable, and it's your own backlog) rather than a large org.
  • Zero matching issues is a hard failure, not a silent green pass.

Verified by running app.update_issues locally against usernames=drkrillo with a real token — produced 3 lines (header + 2 real issues), confirming the assertion this job runs would pass.

Related Issue

Closes #149

Checklist

  • I read the CONTRIBUTING.md
  • I ran the project locally and tested my changes
  • I verified my changes are working as expected
  • This PR description is written by me, not by AI

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

Copy link
Copy Markdown
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 good-first-issue alwways open in the repo for the smoke test to apss but that is expected.

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 :)

@drkrillo
drkrillo merged commit 3a83074 into drkrillo:main Sep 25, 2026
2 checks passed
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.

[FEATURE]: Run the action itself in CI, not just the tests

3 participants