Skip to content

lint

lint #1213

Workflow file for this run

name: lint
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
defaults:
run:
shell: bash -l {0}
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Conda environment
uses: mamba-org/setup-micromamba@v2
with:
environment-file: devtools/conda-envs/lint_env.yml
- name: Check dead links
run: |
FORCE_COLOR=1 sphinx-build -n -W --keep-going -b linkcheck source build/linkcheck
- name: Check code blocks
run: |
FORCE_COLOR=1 sphinx-build -n -W --keep-going -b codelinter source build/codelinter