-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (37 loc) · 1.17 KB
/
docs-ci.yml
File metadata and controls
49 lines (37 loc) · 1.17 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
name: Docs CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
validate-test-build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest PyYAML multilingualprogramming
- name: Validate multilingual docs metadata
run: python scripts/validate_multilingual_docs.py --strict-freshness
- name: Run docs tests
run: python -m pytest _tests -q
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- name: Build Jekyll site
run: bundle exec jekyll build --baseurl "/docs"
- name: Check internal links
run: python scripts/check_internal_links.py --site-dir _site --base-path /docs
- name: Check Pages artifact
run: python scripts/check_pages_artifact.py --site-dir _site --base-path /docs