Skip to content

ci: Consolidate poetry workflows #92

ci: Consolidate poetry workflows

ci: Consolidate poetry workflows #92

Workflow file for this run

name: Linters
on:
pull_request:
push:
branches: [main]
jobs:
commitizen:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
sparse-checkout: |
pyproject.toml
sparse-checkout-cone-mode: false
- name: Install commitizen
run: pipx install commitizen
- run: cz check --rev-range origin/main..HEAD
shell: bash
if: github.event_name == 'pull_request' || github.ref != 'refs/heads/main'
- run: cz check --rev-range HEAD~..
shell: bash
if: github.event_name == 'push' && github.ref == 'refs/heads/main'