Skip to content

Commit d587803

Browse files
author
brandon
committed
issue with gha file?
1 parent 63f8c87 commit d587803

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/cicd.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,50 @@ jobs:
6565
# This is associated with the "sdk-test-prod" user, credentials on 1password
6666
GROUNDLIGHT_API_TOKEN: ${{ secrets.GROUNDLIGHT_API_TOKEN_PROD }}
6767

68+
# Check that the docs build. (No broken links, etc.)
69+
test-docs:
70+
runs-on: ubuntu-latest
71+
defaults:
72+
run:
73+
working-directory: docs/
74+
steps:
75+
- name: Get code
76+
uses: actions/checkout@v4
77+
- name: Setup npm
78+
uses: actions/setup-node@v3
79+
with:
80+
node-version: 21
81+
cache: npm
82+
- name: Install dependencies
83+
run: npm install
84+
- name: Build website
85+
run: npm run build
86+
87+
# Checks that the API reference docs built with sphinx build
88+
test-api-reference-docs:
89+
runs-on: ubuntu-latest
90+
steps:
91+
- name: get code
92+
uses: actions/checkout@v4
93+
- name: install python
94+
uses: actions/setup-python@v4
95+
with:
96+
python-version: ${{ env.PYTHON_VERSION }}
97+
- name: Install poetry
98+
uses: snok/install-poetry@v1
99+
with:
100+
version: ${{ env.POETRY_VERSION }}
101+
- name: Setup npm
102+
uses: actions/setup-node@v3
103+
with:
104+
node-version: 21
105+
cache: npm
106+
- name: Install dependencies
107+
run: make install-sphinx-deps
108+
- name: Build API documentation
109+
run: |
110+
make apidocs
111+
68112
# Run integration tests against the API (only on the main branch, though). The comprehensive
69113
# version runs a matrix of python versions for better coverage.
70114
# This tests runs on

0 commit comments

Comments
 (0)