-
Notifications
You must be signed in to change notification settings - Fork 19
92 lines (79 loc) · 2.2 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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-latest
timeout-minutes: 10
defaults:
run:
# use login shell for conda activation
shell: bash -leo pipefail {0}
steps:
- name: configure python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: configure node
uses: actions/setup-node@v4
with:
node-version: '16'
- name: checkout cylc-doc
uses: actions/checkout@v4
- name: install dependencies
uses: ./.github/actions/install-dependencies
- name: install cylc-doc
run: pip install .[all]
- name: install libs
uses: cylc/release-actions/install-cylc-components@v1
with:
cylc_flow: true
cylc_flow_opts: 'main_loop-log_data_store,main_loop-log_db,main_loop-log_main_loop,main_loop-log_memory'
cylc_uiserver: true
cylc_uiserver_opts: ''
cylc_rose: true
cylc_rose_opts: ''
metomi_rose: true
metomi_rose_opts: ''
- name: lint
run: |
flake8
npx eslint@v8 .
- name: (debug only) list language dictionaries
if: runner.debug
shell: python
env:
PYENCHANT_VERBOSE_FIND: true
run: |
import enchant
print(enchant.list_dicts())
- name: build & test
run: |
make html spelling linkcheck \
SPHINXOPTS='-Wn --keep-going' FORCE_COLOR=true
- name: debug sphinx failure
if: failure()
run: |
cat /tmp/sphinx-err* || true # sphinx traceback
- name: debug - pip list
if: failure()
run: pip list