Skip to content

Fix broken tests in GitHub CI/CD #38

Fix broken tests in GitHub CI/CD

Fix broken tests in GitHub CI/CD #38

Workflow file for this run

name: pre-commit
on:
pull_request:
branches:
- "master"
push:
branches:
- "master"
jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v1
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure --color=always