From 3a8e9c221efaf22a55966c745ee1807687236cbb Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Fri, 7 Jun 2024 15:03:01 +0200 Subject: [PATCH] Rename for everyone. --- .../workflows/{autodocs.yml => autodocs.yaml} | 0 ...mentation.yml => build_documentation.yaml} | 0 .github/workflows/build_pr_documentation.yaml | 19 +++++++++++++++++++ .../workflows/{ci_build.yml => ci_build.yaml} | 4 ++-- ...ation_tests.yml => integration_tests.yaml} | 0 .github/workflows/{stale.yml => stale.yaml} | 0 ...ation.yml => upload_pr_documentation.yaml} | 0 7 files changed, 21 insertions(+), 2 deletions(-) rename .github/workflows/{autodocs.yml => autodocs.yaml} (100%) rename .github/workflows/{build_documentation.yml => build_documentation.yaml} (100%) create mode 100644 .github/workflows/build_pr_documentation.yaml rename .github/workflows/{ci_build.yml => ci_build.yaml} (86%) rename .github/workflows/{integration_tests.yml => integration_tests.yaml} (100%) rename .github/workflows/{stale.yml => stale.yaml} (100%) rename .github/workflows/{upload_pr_documentation.yml => upload_pr_documentation.yaml} (100%) diff --git a/.github/workflows/autodocs.yml b/.github/workflows/autodocs.yaml similarity index 100% rename from .github/workflows/autodocs.yml rename to .github/workflows/autodocs.yaml diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yaml similarity index 100% rename from .github/workflows/build_documentation.yml rename to .github/workflows/build_documentation.yaml diff --git a/.github/workflows/build_pr_documentation.yaml b/.github/workflows/build_pr_documentation.yaml new file mode 100644 index 00000000..bf03bfdf --- /dev/null +++ b/.github/workflows/build_pr_documentation.yaml @@ -0,0 +1,19 @@ +name: Build PR Documentation + +on: + pull_request: + paths: + - "docs/source/**" + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + build: + uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yaml@main + with: + commit_sha: ${{ github.event.pull_request.head.sha }} + pr_number: ${{ github.event.number }} + package: text-generation-inference + additional_args: --not_python_module diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yaml similarity index 86% rename from .github/workflows/ci_build.yml rename to .github/workflows/ci_build.yaml index a8183927..8e31d4fb 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yaml @@ -30,13 +30,13 @@ jobs: fail-fast: true matrix: hardware: ["cuda", "rocm", "intel"] - uses: ./.github/workflows/build.yml # calls the one above ^ + uses: ./.github/workflows/build.yaml # calls the one above ^ with: hardware: ${{ matrix.hardware }} secrets: inherit integration_tests: needs: build-matrix - uses: ./.github/workflows/integration_tests.yml # calls the one above ^ + uses: ./.github/workflows/integration_tests.yaml # calls the one above ^ with: docker_image: ${{ steps.build.outputs.docker_image }} docker_devices: ${{ steps.build.outputs.docker_devices }} diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yaml similarity index 100% rename from .github/workflows/integration_tests.yml rename to .github/workflows/integration_tests.yaml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yaml similarity index 100% rename from .github/workflows/stale.yml rename to .github/workflows/stale.yaml diff --git a/.github/workflows/upload_pr_documentation.yml b/.github/workflows/upload_pr_documentation.yaml similarity index 100% rename from .github/workflows/upload_pr_documentation.yml rename to .github/workflows/upload_pr_documentation.yaml