From a49b7504d9b61691b9b4da0df1d77b9c28afa85a Mon Sep 17 00:00:00 2001 From: Niels Bantilan Date: Fri, 8 Dec 2023 16:47:41 -0500 Subject: [PATCH 1/5] add monodocs build to ci Signed-off-by: Niels Bantilan --- .github/workflows/monodocs_build.yml | 52 ++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/monodocs_build.yml diff --git a/.github/workflows/monodocs_build.yml b/.github/workflows/monodocs_build.yml new file mode 100644 index 000000000..85efb66c3 --- /dev/null +++ b/.github/workflows/monodocs_build.yml @@ -0,0 +1,52 @@ +name: Docs Build + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +on: + push: + branches: + - monodocs-ci + pull_request: + branches: + - master +jobs: + docs: + name: Docs Build + runs-on: ubuntu-latest + steps: + - name: Fetch flytesnacks code + uses: actions/checkout@v4 + with: + path: "${{ github.workspace }}/flytesnacks" + - name: Fetch flyte code + uses: actions/checkout@v4 + with: + path: "${{ github.workspace }}/flyte" + - uses: conda-incubator/setup-miniconda@v3 + with: + auto-update-conda: true + python-version: 3.9 + - shell: bash -el {0} + run: | + cd ${{ github.workspace }}/flyte + conda install -c conda-forge conda-lock + conda-lock install -n monodocs-env monodocs-environment.lock.yaml + - shell: bash -el {0} + run: | + conda activate monodocs-env + conda info + conda list + conda config --show-sources + conda config --show + printenv | sort + - name: Setup Graphviz + uses: ts-graphviz/setup-graphviz@v1 + - name: Build the documentation + shell: bash -el {0} + env: + FLYTESNACKS_LOCAL_PATH: ${{ github.workspace }}/flytesnacks + run: | + conda activate monodocs-env + make docs From 293b53177410bd701e8c8b1a1f54b0a487fa2c77 Mon Sep 17 00:00:00 2001 From: Niels Bantilan Date: Fri, 8 Dec 2023 16:56:22 -0500 Subject: [PATCH 2/5] debug Signed-off-by: Niels Bantilan --- .github/workflows/monodocs_build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/monodocs_build.yml b/.github/workflows/monodocs_build.yml index 85efb66c3..b9ac64286 100644 --- a/.github/workflows/monodocs_build.yml +++ b/.github/workflows/monodocs_build.yml @@ -7,7 +7,7 @@ concurrency: on: push: branches: - - monodocs-ci + - master pull_request: branches: - master @@ -30,8 +30,9 @@ jobs: python-version: 3.9 - shell: bash -el {0} run: | - cd ${{ github.workspace }}/flyte + cd "${{ github.workspace }}/flyte" conda install -c conda-forge conda-lock + ls . conda-lock install -n monodocs-env monodocs-environment.lock.yaml - shell: bash -el {0} run: | From 865d4e10ca2f5ac6aa1e22201596d83eaaf4160c Mon Sep 17 00:00:00 2001 From: Niels Bantilan Date: Fri, 8 Dec 2023 17:00:35 -0500 Subject: [PATCH 3/5] use correct repo Signed-off-by: Niels Bantilan --- .github/workflows/monodocs_build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/monodocs_build.yml b/.github/workflows/monodocs_build.yml index b9ac64286..9182563b3 100644 --- a/.github/workflows/monodocs_build.yml +++ b/.github/workflows/monodocs_build.yml @@ -23,6 +23,7 @@ jobs: - name: Fetch flyte code uses: actions/checkout@v4 with: + repository: flyteorg/flyte path: "${{ github.workspace }}/flyte" - uses: conda-incubator/setup-miniconda@v3 with: From bfbfe09466827ef3524c56208197da670eedb346 Mon Sep 17 00:00:00 2001 From: Niels Bantilan Date: Fri, 8 Dec 2023 17:12:46 -0500 Subject: [PATCH 4/5] set working directory Signed-off-by: Niels Bantilan --- .github/workflows/monodocs_build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/monodocs_build.yml b/.github/workflows/monodocs_build.yml index 9182563b3..101e392c1 100644 --- a/.github/workflows/monodocs_build.yml +++ b/.github/workflows/monodocs_build.yml @@ -30,10 +30,9 @@ jobs: auto-update-conda: true python-version: 3.9 - shell: bash -el {0} + working-directory: ${{ github.workspace }}/flyte run: | - cd "${{ github.workspace }}/flyte" conda install -c conda-forge conda-lock - ls . conda-lock install -n monodocs-env monodocs-environment.lock.yaml - shell: bash -el {0} run: | @@ -46,6 +45,7 @@ jobs: - name: Setup Graphviz uses: ts-graphviz/setup-graphviz@v1 - name: Build the documentation + working-directory: ${{ github.workspace }}/flyte shell: bash -el {0} env: FLYTESNACKS_LOCAL_PATH: ${{ github.workspace }}/flytesnacks From e1d6e9bdf56146b6e780ef048016426bf9caf166 Mon Sep 17 00:00:00 2001 From: Niels Bantilan Date: Fri, 8 Dec 2023 17:30:44 -0500 Subject: [PATCH 5/5] test removing graphviz setup Signed-off-by: Niels Bantilan --- .github/workflows/monodocs_build.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/monodocs_build.yml b/.github/workflows/monodocs_build.yml index 101e392c1..1a882e8f3 100644 --- a/.github/workflows/monodocs_build.yml +++ b/.github/workflows/monodocs_build.yml @@ -42,8 +42,6 @@ jobs: conda config --show-sources conda config --show printenv | sort - - name: Setup Graphviz - uses: ts-graphviz/setup-graphviz@v1 - name: Build the documentation working-directory: ${{ github.workspace }}/flyte shell: bash -el {0}