-
Notifications
You must be signed in to change notification settings - Fork 602
57 lines (45 loc) · 1.63 KB
/
ibis-docs-pr.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Docs PR
on:
pull_request:
branches:
- main
- "*.x.x"
merge_group:
concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
permissions:
# increase the rate limit for github operations, but limit token permissions
# to read-only
contents: read
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: install nix
uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: setup cachix
uses: cachix/cachix-action@v15
with:
name: ibis
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
extraPullNames: nix-community,poetry2nix
- name: checkout
uses: actions/checkout@v4
- name: run doctest
# keep HOME because duckdb (which we use for doctests) wants to use
# that for extensions
run: nix develop --ignore-environment --keep HOME --keep HYPOTHESIS_PROFILE -c just doctest
- name: generate api docs
run: nix develop --ignore-environment -c just docs-apigen --verbose
- name: build docs
run: nix develop --ignore-environment --keep HOME -c just docs-render
- name: build jupyterlite
run: nix develop --ignore-environment --keep HOME -c just build-jupyterlite
- name: check that all frozen computations were done before push
run: git diff --exit-code --stat
- name: verify internal links
run: nix develop --ignore-environment '.#links' -c just checklinks --offline --no-progress