Skip to content
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

Test build pr outside container #487

Merged
merged 2 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/build_main_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ on:
convert_notebooks:
type: boolean
description: "Convert notebooks to markdown files before building docs."
# Docker image to use for the build. Set custom_container="" if you don't need any.
# Default containers is "huggingface/transformers-doc-builder" which has all the necessary dependencies (torch,
# transformers, tensorflow, etc.) but is quite heavy to download.
custom_container:
type: string
default: "huggingface/transformers-doc-builder"
description: "Docker image to use for the build."
secrets:
hf_token:
required: true
Expand All @@ -56,7 +63,7 @@ jobs:
build_main_documentation:
runs-on: ubuntu-latest
container:
huggingface/transformers-doc-builder
${{ inputs.custom_container }}

steps:
- uses: actions/checkout@v2
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/build_pr_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ on:
convert_notebooks:
type: boolean
description: "Convert notebooks to markdown files before building docs."
# Docker image to use for the build. Set custom_container="" if you don't need any.
# Default containers is "huggingface/transformers-doc-builder" which has all the necessary dependencies (torch,
# transformers, tensorflow, etc.) but is quite heavy to download.
custom_container:
type: string
default: "huggingface/transformers-doc-builder"
description: "Docker image to use for the build."
# Debug purposes only!
doc_builder_revision:
type: string
Expand All @@ -57,7 +64,7 @@ jobs:
build_pr_documentation:
runs-on: ubuntu-latest
container:
huggingface/transformers-doc-builder
${{ inputs.custom_container }}

steps:
- uses: actions/checkout@v2
Expand Down
Loading