diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index 9777a2ffc0..ae1c8355fc 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -1,6 +1,6 @@ name: Documentation Build - on: [pull_request, workflow_dispatch] +on: [pull_request, workflow_dispatch] concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -32,26 +32,25 @@ jobs: - name: Create Python venv run: | python -m venv .venv - .\.venv\Scripts\Activate.ps1 - name: "Update pip" run: | - .\.venv\Scripts\Activate.ps1 + . .venv/bin/activate python -m pip install -U pip - name: Install pyedb with doc dependencies run: | - .\.venv\Scripts\Activate.ps1 + . .venv/bin/activate pip install .[doc] - name: Verify that pyedb can be imported run: | - .\.venv\Scripts\Activate.ps1 + . .venv/bin/activate python -c "import pyedb" - name: Retrieve pyedb version run: | - .\.venv\Scripts\Activate.ps1 + . .venv/bin/activate echo "Pyedb version: $(python -c "from pyedb import __version__; print(); print(__version__)" | tail -1)" - name: Install doc build requirements @@ -62,7 +61,7 @@ jobs: # NOTE: we have to add the examples file here since it won't be created as gallery is disabled on linux. - name: Documentation Build run: | - .\.venv\Scripts\Activate.ps1 + . .venv/bin/activate make -C doc clean mkdir doc/source/examples -p echo $'Examples\n========' > doc/source/examples/index.rst @@ -71,7 +70,7 @@ jobs: # Verify that sphinx generates no warnings - name: Check for warnings run: | - .\.venv\Scripts\Activate.ps1 + . .venv/bin/activate python doc/print_errors.py - name: Upload Documentation