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

CI: fix build-documentation yaml file #85

Merged
merged 2 commits into from
Dec 6, 2023
Merged
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
15 changes: 7 additions & 8 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Documentation Build

on: [pull_request, workflow_dispatch]
on: [pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Loading