Skip to content

Commit

Permalink
Add pre-commit CI cache (ott-jax#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalk8 authored and pierreablin committed Feb 14, 2023
1 parent 1c715e0 commit c57de59
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:
with:
python-version: '3.10'

- name: Cache pre-commit
uses: actions/cache@v3
if: ${{ matrix.lint-kind == 'code' }}
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ env.pythonLocation }}-${{ hashFiles('**/.pre-commit-config.yaml') }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -36,8 +43,8 @@ jobs:
- name: Install PyEnchant
if: ${{ matrix.lint-kind == 'docs' }}
run: |
sudo apt update -y
sudo apt install libenchant-2-dev
sudo apt-get update -y
sudo apt-get install libenchant-2-dev
python -m pip install pyenchant
- name: Lint ${{ matrix.lint-kind }}
Expand Down

0 comments on commit c57de59

Please sign in to comment.