Skip to content

Commit

Permalink
CI: Install setuptools in deploy-docs.yml
Browse files Browse the repository at this point in the history
`setuptools` are not pre-installed in virtual environments created by
Python 3.12.
  • Loading branch information
krivenko committed Jan 21, 2024
1 parent 9de077a commit 902b7f1
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
name: Deploy documentation

# FIXME
on:
workflow_run:
workflows: ["Build and test"]
push:
branches:
- master
- ci
types: [completed]

#on:
# workflow_run:
# workflows: ["Build and test"]
# branches:
# - master
# - ci
# types: [completed]

jobs:
build-and-deploy:
runs-on: ubuntu-20.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
#if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3

Expand All @@ -34,12 +40,14 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install pybind11 numpy tox sphinx sphinx-rtd-theme myst-parser
- name: Build documentation
run: |
export LIBCOMMUTE_DIR=${GITHUB_WORKSPACE}/libcommute.installed
export LIBCOMMUTE_INCLUDEDIR=${LIBCOMMUTE_DIR}/include
pip install .
sphinx-build -M html docs/ build/sphinx/html
- name: Deploy documentation
Expand Down

0 comments on commit 902b7f1

Please # to comment.