forked from datalad/datalad
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.14 KB
/
docbuild.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
name: Docs
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up environment
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Almighty"
- uses: actions/checkout@v4
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install ".[devel-docs]"
sudo apt-get install p7zip
- name: Build docs
run: |
make -C docs html doctest;
- name: Test building manpages
run: |
# with custom date
DATALAD_SOURCE_EPOCH=100000000 python setup.py build_manpage
grep '\.TH "datalad" "1" "1973' ./build/man/datalad.1
# no custom date - should be good for the next 980 years
python setup.py build_manpage
grep '\.TH "datalad" "1" "2' ./build/man/datalad.1
- name: Test for correct (unescaped) slashes
run: |
grep '\-\-help' docs/build/html/generated/man/datalad-create.html