Skip to content

ci: use self-repository syntax - #82

Merged
cesarcoatl merged 1 commit into
8.1from
ci/8.1/self-repository-syntax
Sep 1, 2026
Merged

ci: use self-repository syntax#82
cesarcoatl merged 1 commit into
8.1from
ci/8.1/self-repository-syntax

Conversation

@cesarcoatl

@cesarcoatl cesarcoatl commented Sep 1, 2026

Copy link
Copy Markdown
Member

Summary by Sourcery

Use repository-qualified references for the shared tox workflow in CI and publishing pipelines.

Enhancements:

  • Update CI and publishing workflows to reference the reusable tox workflow through the repository-qualified syntax.

CI:

  • Align reusable workflow references in CI and publishing jobs with the self-repository syntax.

@sourcery-ai

sourcery-ai Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Both CI and publishing workflows now invoke the shared tox workflow through the self-repository reference syntax while preserving their existing checkout-ref inputs.

File-Level Changes

Change Details Files
Update reusable workflow references to use self-repository syntax.
  • Change the tox workflow reference in CI pull-request jobs.
  • Change the tox workflow reference in publishing jobs.
.github/workflows/ci.yml
.github/workflows/publish.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path=".github/workflows/ci.yml" line_range="26" />
<code_context>
   tox:
     if: ${{ github.event_name == 'pull_request' }}
-    uses: ./.github/workflows/tox.yml
+    uses: $/.github/workflows/tox.yml
     with:
       checkout-ref: ${{ github.ref }}
</code_context>
<issue_to_address>
**issue (bug_risk):** The reusable workflow reference `uses: $/.github/workflows/tox.yml` is not a valid GitHub Actions repository or local-workflow reference, so the workflows fail validation and the `tox` jobs never run. In `publish.yml`, this also prevents the dependent PyPI upload job from running.

**Suggested fix:** Use the local reusable-workflow syntax `uses: ./.github/workflows/tox.yml` in both files, or use a fully qualified `{owner}/{repo}/.github/workflows/tox.yml@{ref}` reference.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: .github/workflows/ci.yml:26


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread .github/workflows/ci.yml
tox:
if: ${{ github.event_name == 'pull_request' }}
uses: ./.github/workflows/tox.yml
uses: $/.github/workflows/tox.yml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): The reusable workflow reference uses: $/.github/workflows/tox.yml is not a valid GitHub Actions repository or local-workflow reference, so the workflows fail validation and the tox jobs never run. In publish.yml, this also prevents the dependent PyPI upload job from running.

Suggested fix: Use the local reusable-workflow syntax uses: ./.github/workflows/tox.yml in both files, or use a fully qualified {owner}/{repo}/.github/workflows/tox.yml@{ref} reference.

@cesarcoatl
cesarcoatl merged commit 39f730a into 8.1 Sep 1, 2026
6 checks passed
@cesarcoatl
cesarcoatl deleted the ci/8.1/self-repository-syntax branch September 1, 2026 04:12
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.

1 participant