Skip to content

Split linting from main workflow#144

Open
m-aciek wants to merge 19 commits into
3.15from
split-linting-from-main-workflow
Open

Split linting from main workflow#144
m-aciek wants to merge 19 commits into
3.15from
split-linting-from-main-workflow

Conversation

@m-aciek

@m-aciek m-aciek commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

By splitting workflows we get a better, gradual feedback and state of things expression.

Building without strict mode, we can add back strict mode as a separate workflow (or as part of linting?) in the future.

Updated READMEs with new workflow links. Extra changes: dropped translations mailing list and added a link to Sphinx translation.

Unable to test workflow run trigger before the PR is merged into main.

To do:

@m-aciek

m-aciek commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator Author

Posted a PR fixing the failure cause: python/cpython#151343

@StanFromIreland

Copy link
Copy Markdown
Member

Posted a PR fixing the failure cause: python/cpython#151343

Thanks, merged!

Comment thread .github/workflows/lint.yml Outdated
@m-aciek m-aciek marked this pull request as ready for review June 11, 2026 19:41
@m-aciek m-aciek requested a review from StanFromIreland June 11, 2026 19:43
- run: git add .
- run: git commit -m "$(python manage_translation.py generate_commit_msg)"
if: env.SIGNIFICANT_CHANGES
- name: Push commit

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

added a skip

- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: build-${{ matrix.version }}-epub

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This will need read permissions (which we don't give above with permissions: {}), and passed a run-id, see https://github.com/actions/download-artifact#download-artifacts-from-other-workflow-runs-or-repositories.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

added actions: read for this job

Comment thread .github/workflows/update-and-build.yml Outdated
on: # zizmor: ignore[dangerous-triggers]
workflow_run:
workflows: [update and build]
types: [completed]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does this include failures, lint-epub will need gating for that as otherwise it'll scream when it tries to download the artefact.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

added this, thank you for thorough review!

@m-aciek m-aciek requested a review from StanFromIreland June 15, 2026 22:01
@m-aciek

m-aciek commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts in this pull request

@StanFromIreland

Copy link
Copy Markdown
Member

Oh no, sorry this slipped my mind. I'll review later today.

@python-cla-bot

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

Copilot AI commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved in b1e0efc. The conflicts were in the auto-generated badge stats sections of both README files — took the newer translation percentages from 3.15 while keeping the lint.yml workflow link from this branch.

- name: Push commit
uses: ad-m/github-push-action@881a6320fdb16eb5318c5054f31c218aec2b324c # v1.3.0
if: env.SIGNIFICANT_CHANGES
if: env.SIGNIFICANT_CHANGES && (github.event.workflow_run.head_branch == github.event.repository.default_branch)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There's no workflow_run trigger?


jobs:
lint:
if: github.event.workflow_run.conclusion == 'success'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if: github.event.workflow_run.conclusion == 'success'

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.

3 participants