Skip to content

build: Update scaffolding, tooling #64

build: Update scaffolding, tooling

build: Update scaffolding, tooling #64

Workflow file for this run

name: Linters
on:
pull_request:
jobs:
gitlint:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up python environment
uses: actions/setup-python@v4
with:
cache: 'pip'
- run: pip install gitlint
# NOTE: first commit using conventional-commits: 8115756
- run: gitlint --fail-without-commits --commits main..HEAD
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up python environment
uses: actions/setup-python@v4
with:
cache: 'poetry'
- run: poetry install --no-root --with=dev --sync
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- run: poetry run pre-commit run --show-diff-on-failure --color=always --all-files
shell: bash