Merge pull request #78 from ChristopherMayes/add_coil_to_docs #39
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: Lint | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: ./.github/actions/conda-setup | |
with: | |
python-version: "3.12" | |
extras: "dev" | |
- name: Install pre-commit | |
shell: bash -l {0} | |
run: conda install pre-commit nbconvert | |
- name: List Python package versions | |
shell: bash -l {0} | |
run: conda list | |
- name: Run notebook clearing check first (no diff) | |
shell: bash -l {0} | |
env: | |
RUFF_OUTPUT_FORMAT: github | |
run: | | |
pre-commit run jupyter-notebook-clear-output --all-files | |
- name: Switch to a temporary branch | |
shell: bash -l {0} | |
run: | | |
git checkout -b _ci_branch_ | |
- name: Run pre-commit on all files | |
shell: bash -l {0} | |
env: | |
RUFF_OUTPUT_FORMAT: github | |
run: | | |
pre-commit run \ | |
--show-diff-on-failure \ | |
--color=always \ | |
--all-files |