-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.04 KB
/
build-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build documentation
on:
push:
tags:
- "*"
jobs:
test:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: 'pip'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install cmake pybind11 numpy tox assorthead mattress>=0.1.4 knncolle>=0.2.0
- name: Build docs
run: |
python setup.py build_ext --inplace
cp build/lib*/scranpy/lib_scranpy* src/scranpy/
tox -e docs
touch ./docs/_build/html/.nojekyll
- name: GH Pages Deployment
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: ./docs/_build/html
clean: true # Automatically remove deleted files from the deploy branch