-
Notifications
You must be signed in to change notification settings - Fork 1.2k
55 lines (50 loc) · 1.38 KB
/
test.yaml
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
name: CI Tests
on: [pull_request]
env:
hugo_image_cache_name: hugo-generated-images
hugo_image_cache_path: /home/runner/work/docs-publishing/docs-publishing/docs-repo/resources/_gen/images/
jobs:
blueberry:
runs-on: ubuntu-latest
steps:
- name: Checkout docs repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10.x'
architecture: 'x64'
cache: pip
- name: Install dependencies (Python)
run: |
pip install -r ./ci/requirements.txt
- name: blueberry
run: |
python ./ci/blueberry.py
vale:
name: Vale (spellchecker)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
with:
files: docs
vale_flags: "--glob=!docs/contributors/*"
fail_on_error: true
check-links:
name: Check Links (Markdown)
runs-on: ubuntu-latest
steps:
- name: Checkout docs repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10.x'
architecture: 'x64'
cache: pip
- name: Install dependencies (Python)
run: |
pip install -r ./ci/requirements.txt
- name: Run tests
run: python ./ci/check-links.py ${{ steps.files.outputs.all }}