adds pre-commit badge and C
I
flag #46
#27
Workflow file for this run
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: pre-commit | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- 46-ci-pre-commit | |
jobs: | |
pre-commit: | |
if: "contains(github.event.head_commit.message, 'CI')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Set up python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: python -m pip install .[test] | |
#run: python -m pip install pre-commit pylint black isort codespell #.[test] | |
- name: Run pre-commit | |
run: pre-commit run --all-files --color always --verbose |