From 46ecb808f7809ab1c6bbfe0c72bc78aa6b3a67ea Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Mon, 19 Aug 2024 01:24:19 +0300 Subject: [PATCH] =?UTF-8?q?ci(refactor):=20=F0=9F=91=B7=20GitHub=20Actions?= =?UTF-8?q?=20workflow=20to=20consolidate=20dependency=20installation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Combine multiple pip install commands into a single step - Simplify the workflow by reducing redundancy - Ensure all necessary dependencies are installed in one go Signed-off-by: Onuralp SEZER --- .github/workflows/test-doc.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test-doc.yml b/.github/workflows/test-doc.yml index b06f9b99..b1507290 100644 --- a/.github/workflows/test-doc.yml +++ b/.github/workflows/test-doc.yml @@ -14,21 +14,8 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.10' - - name: ๐Ÿ“ฆ Install mkdocs-material - run: pip install "mkdocs-material[all]" - - name: ๐Ÿ“ฆ Install mkdocstrings[python] - run: pip install "mkdocstrings[python]" - - name: ๐Ÿ“ฆ Install mkdocs-material[imaging] - run: pip install "mkdocs-material[imaging]" - - name: ๐Ÿ“ฆ Install mike - run: pip install "mike" - - name: ๐Ÿ“ฆ Install mkdocs-git-revision-date-localized-plugin - run: pip install "mkdocs-git-revision-date-localized-plugin" - - name: ๐Ÿ“ฆ Install JupyterLab - run: pip install jupyterlab - - name: ๐Ÿ“ฆ Install mkdocs-jupyter - run: pip install mkdocs-jupyter - - name: ๐Ÿ“ฆ Install mkdocs-git-committers-plugin-2 - run: pip install mkdocs-git-committers-plugin-2 - - name: ๐Ÿงช Test documentation build - run: mkdocs build --verbose + - name: ๐Ÿ—๏ธ Install dependencies and Test Docs Build + run: | + python -m pip install --upgrade pip + pip install "mkdocs-material" "mkdocstrings[python]" "mkdocs-material[imaging]" mike "mkdocs-git-revision-date-localized-plugin" jupyterlab mkdocs-jupyter mkdocs-git-committers-plugin-2 + mkdocs build --verbose