-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) · 919 Bytes
/
lint.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
name: lint
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Conda environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: devtools/conda-envs/lint_env.yml
# default - will pull down 2.0 which we don't want!
# micromamba-version: latest
# pin to latest 1.x release
micromamba-version: "1.5.10-0"
- name: Check dead links
shell: bash -l {0}
run: |
FORCE_COLOR=1 sphinx-build -n -W --keep-going -b linkcheck source build/linkcheck
- name: Check code blocks
shell: bash -l {0}
run: |
FORCE_COLOR=1 sphinx-build -n -W --keep-going -b codelinter source build/codelinter