Skip to content

remove complexity

remove complexity #260

name: Run pre-commit in blueprint
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
blueprint-pre-commit:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11.0
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
channels: conda-forge
channel-priority: flexible
show-channel-urls: true
- name: Create env from unpinned reqs
run: |
conda env create --name blueprint --file requirements/requirements.yml
- name: Install pre-commit hooks
run: |
conda run --name blueprint pre-commit install-hooks
- name: Run pre-commit hooks
run: |
conda run --name blueprint pre-commit run --all-files