forked from linkml/linkml
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.29 KB
/
docs-test.yaml
File metadata and controls
53 lines (47 loc) · 1.29 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
name: Build and test documentation
env:
UV_VERSION: "0.7.13"
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test_docs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Ensure tags if not run from main repo
if: github.repository != 'linkml/linkml'
run: |
git remote add upstream https://github.com/linkml/linkml
git fetch upstream --tags
- name: Install uv
uses: astral-sh/setup-uv@v8.0.0
with:
version: ${{ env.UV_VERSION }}
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6.2.0
id: setup-python
with:
python-version: ${{ matrix.python-version }}
#----------------------------------------------
# install dependencies
#----------------------------------------------
- name: Install dependencies
run: uv sync --group docs --group lint
- name: Build docs
working-directory: docs
env:
SPHINXOPTS: "-W --keep-going"
run: uv run make html