Version bump to 1.0.0, change PyPI index to real one (#10) #33
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 Checks | |
on: | |
pull_request: | |
branches: | |
- main | |
- 'release/**' | |
push: | |
branches: | |
- main | |
- 'release/**' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pre-commit-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
pip3 install pre-commit | |
pre-commit install | |
if [ ${{ github.ref }} == 'refs/heads/main' ]; then \ | |
SKIP=no-commit-to-branch pre-commit run --all-files; \ | |
else \ | |
pre-commit run --all-files; \ | |
fi |