Skip to content

lint

lint #770

Workflow file for this run

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
- 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