-
Notifications
You must be signed in to change notification settings - Fork 119
52 lines (44 loc) · 1.37 KB
/
qaqc.yaml
File metadata and controls
52 lines (44 loc) · 1.37 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
50
51
52
name: QualityContol
on:
workflow_dispatch:
pull_request:
branches:
- main
paths-ignore:
- ".devcontainer/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality-control:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-pixi
# NOTE: this isn't a comprehensive spellcheck, just common typos
- name: Spellcheck
if: always()
uses: codespell-project/actions-codespell@v2
with:
check_filenames: true
check_hidden: true
skip: ".git,*.js,qaqc.yml"
ignore_words_list: hist,nd
# borrowed from https://github.com/ProjectPythia/pythia-foundations/blob/main/.github/workflows/link-checker.yaml
- name: Disable Notebook Execution Before Linkcheck
if: always()
shell: python
run: |
import yaml
with open('./_config.yml') as f:
data = yaml.safe_load(f)
data['execute']['execute_notebooks'] = 'off'
with open('./_config.yml', 'w') as f:
yaml.dump(data, f)
# Checking links is flaky, so continue-on-error: true
- name: Check External Links
timeout-minutes: 5
continue-on-error: true
if: always()
run: |
jupyter-book build ./ --builder linkcheck