added note about PYTHONPATH & CYLC_PYTHONPATH #1941
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
with: | |
python-version: '3.9' | |
- name: configure node | |
uses: actions/setup-node@v3 | |
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: install eslint | |
run: | | |
npm install -g eslint | |
- name: lint | |
run: | | |
flake8 | |
eslint . | |
- 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 doctest \ | |
SPHINXOPTS='-Wn --keep-going' FORCE_COLOR=true | |
- name: debug sphinx failure | |
if: failure() | |
run: | | |
cat /tmp/sphinx-err* || true # sphinx traceback |