-
Notifications
You must be signed in to change notification settings - Fork 5
ci: add docs build as parallel CI job [PYSDK-110] #600
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
Changes from all commits
799148c
8fe7328
9daa02a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: "> Docs" | ||
|
|
||
| on: | ||
| workflow_call: | ||
| # No secrets needed | ||
|
|
||
| jobs: | ||
| docs: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| packages: read | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 | ||
| with: | ||
| version-file: "pyproject.toml" | ||
| enable-cache: true | ||
| cache-dependency-glob: uv.lock | ||
|
|
||
| - name: Install dev tools | ||
| shell: bash | ||
| run: .github/workflows/_install_dev_tools.bash | ||
|
|
||
| - name: Install Python, venv and dependencies | ||
| shell: bash | ||
| run: uv sync --all-extras --frozen --link-mode=copy | ||
|
|
||
| - name: Docs | ||
| shell: bash | ||
| run: make docs | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -77,6 +77,19 @@ jobs: | |||||
| id-token: write | ||||||
| packages: read | ||||||
|
|
||||||
| docs: | ||||||
| needs: [get-commit-message] | ||||||
| if: | | ||||||
| (!contains(needs.get-commit-message.outputs.commit_message, 'skip:ci')) && | ||||||
| (!contains(needs.get-commit-message.outputs.commit_message, 'build:native:only')) && | ||||||
| (!contains(github.event.pull_request.labels.*.name, 'skip:ci')) && | ||||||
| (!contains(github.event.pull_request.labels.*.name, 'build:native:only')) | ||||||
| uses: ./.github/workflows/_docs.yml | ||||||
| permissions: | ||||||
| contents: read | ||||||
| id-token: write | ||||||
| packages: read | ||||||
|
Comment on lines
+90
to
+91
|
||||||
| id-token: write | |
| packages: read |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reusable workflow grants
id-token: writeandpackages: read, but the steps only perform checkout,uv sync, andmake docs. If you’re not accessing GitHub Packages or using OIDC in the docs build, drop these permissions and keep onlycontents: readto follow least-privilege.