Skip to content

Commit

Permalink
CI: Correction to 9de077a
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 0e65cec
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 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,13 +40,15 @@ 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
sphinx-build -M html docs/ build/sphinx/html
pip install .
sphinx-build -M html docs/ build/sphinx
- name: Deploy documentation
uses: JamesIves/github-pages-deploy-action@v4
Expand Down

0 comments on commit 0e65cec

Please sign in to comment.