-
-
Notifications
You must be signed in to change notification settings - Fork 14
Split linting from main workflow #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+68
−52
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
9a6855e
Split linting jobs into a separate workflow file
m-aciek c54b55a
Set SPHINXERRORHANDLING environment variable to 0 in build workflow
m-aciek d0ab3ba
Set SPHINXERRORHANDLING environment variable to '' in build workflow
m-aciek 08b7f0b
Remove fail-on-warning flag from Sphinx build options in update-and-b…
m-aciek de91514
Install librsvg2-bin in output-pdf step
m-aciek 9a081e8
Disable fail-fast in output-pdf job strategy
m-aciek 24516e4
Update lint.yml
m-aciek 2c4d6f4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2ac3748
Update README.md
m-aciek 9577fed
Update README.en.md
m-aciek 79d6f8b
Update update-and-build.yml, partial revert
m-aciek 977eacf
Update README files to link to the new lint workflow
m-aciek cf76331
Remove Python translations mailing list link from README files
m-aciek db9f6e9
Add Sphinx translation link to README files
m-aciek ee89d94
Refactor linting workflow to remove unnecessary flag from Sphinx buil…
m-aciek 378d5ec
skip pushing out of default branch, skip linting on non-successes, se…
m-aciek 89e49b6
Merge branch '3.15' into split-linting-from-main-workflow
m-aciek 3076a9a
Initial state - resolving merge conflicts
Copilot b1e0efc
Resolve merge conflicts in README.md and README.en.md
Copilot 6b281a7
Don't skip source linting on update/push failure
m-aciek 88f0c3c
Fix skipping non-default branches for push
m-aciek 6bd439f
Merge branch '3.15' into split-linting-from-main-workflow
Copilot fafb4a3
Unify python-version in setup step
m-aciek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| name: lint | ||
|
|
||
| on: # zizmor: ignore[dangerous-triggers] | ||
| workflow_run: | ||
| workflows: [update and build] | ||
| types: [completed] | ||
|
|
||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| version: [3.15, 3.14, 3.13, 3.12, 3.11] | ||
| continue-on-error: true | ||
| steps: | ||
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| with: | ||
| python-version: 3 | ||
| - run: pip install sphinx-lint | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| ref: ${{ matrix.version }} | ||
| persist-credentials: false | ||
| - uses: rffontenelle/sphinx-lint-problem-matcher@4270bf50b2c93640a7cbb231c09f8e694699af9f # v1.0.0 | ||
| - run: sphinx-lint | ||
|
|
||
| lint-epub: | ||
| if: github.event.workflow_run.conclusion == 'success' | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: read | ||
| strategy: | ||
| matrix: | ||
| version: [3.15, 3.14] | ||
| continue-on-error: true | ||
| steps: | ||
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| with: | ||
| python-version: 3 | ||
| - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | ||
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||
| with: | ||
| name: build-${{ matrix.version }}-epub | ||
|
StanFromIreland marked this conversation as resolved.
|
||
| run-id: ${{ github.event.workflow_run.id }} | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| - run: uvx epubcheck | ||
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.