Skip to content

CI: no unbound variables check #5

CI: no unbound variables check

CI: no unbound variables check #5

name: pre-commit-self-hosted
on:
push:
pull_request:
workflow_dispatch:
jobs:
lint:
# pull requests are a duplicate of a branch push if within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
name: Check code style
runs-on: self-hosted
strategy:
fail-fast: false
defaults:
run:
shell: bash -l -vxeo pipefail {0}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dev dependencies
run: |
python3 -m pip install pre-commit black isort
python3 -m pip list
- name: Run pre-commit
run: |
pre-commit run --all-files --show-diff
- name: Test IPython
run: |
which ipython
ipython -V
python -VV
ipython --profile=collection