Skip to content

Catch-up on EN labs for Japanese translation. (#255) #1485

Catch-up on EN labs for Japanese translation. (#255)

Catch-up on EN labs for Japanese translation. (#255) #1485

Workflow file for this run

name: pre-commit
on:
push:
branches:
- main
pull_request:
types:
- opened
- edited
- synchronize
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip' # caching pip dependencies
- run: pip install -r requirements.txt
- uses: actions/cache@v3
env:
cache-name: pre-commit
with:
path: ~/.cache/pre-commit # caching pre-commit environments
key: ${{ env.cache-name }}-${{ hashFiles('.pre-commit-config.yaml','~/.cache/pre-commit/*') }} # the key is to cache both the pre-commit package and dependent hooks
- run: pre-commit run --show-diff-on-failure --color=always --all-files