forked from cylc/cylc-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (57 loc) · 1.48 KB
/
test.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
58
59
60
61
62
63
64
65
66
67
68
69
name: test
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
inputs:
cylc-flow-tag:
description: 'cylc-flow ref'
required: true
cylc-rose-tag:
description: 'cylc-rose ref'
required: true
cylc-uis-tag:
description: 'cylc-uis ref'
required: true
metomi-rose-tag:
description: 'metomi-rose ref (for cylc-rose install)'
required: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-18.04
timeout-minutes: 10
steps:
- name: configure python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: configure node
uses: actions/setup-node@v4
with:
node-version: '16'
- name: checkout cylc-doc
uses: actions/checkout@v3
- name: install dependencies
uses: ./.github/actions/install-dependencies
- name: install cylc-doc
run: pip install .[all]
- name: install libs to document
uses: ./.github/actions/install-libs
- name: install eslint
run: |
npm install -g eslint
- name: lint
run: |
flake8
eslint .
- name: build
run: |
make html slides spelling linkcheck doctest SPHINXOPTS='-Wn'
- name: debug
if: failure()
run: |
cat /tmp/sphinx-err* || true # sphinx traceback