mirror of
https://github.com/ROCm/jax.git
synced 2025-04-17 12:26:07 +00:00
Update pre-commit workflow to cache on jax version
This commit is contained in:
parent
f462d7e586
commit
b7bdee9056
7
.github/workflows/ci-build.yaml
vendored
7
.github/workflows/ci-build.yaml
vendored
@ -34,7 +34,12 @@ jobs:
|
||||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
||||
with:
|
||||
python-version: 3.11
|
||||
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
|
||||
- run: python -m pip install pre-commit
|
||||
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
|
||||
with:
|
||||
path: ~/.cache/pre-commit
|
||||
key: pre-commit-${{ env.pythonLocation }}-${{ hashFiles('.pre-commit-config.yaml', 'setup.py') }}
|
||||
- run: pre-commit run --show-diff-on-failure --color=always
|
||||
|
||||
build:
|
||||
name: "build ${{ matrix.name-prefix }} (py ${{ matrix.python-version }} on ubuntu-20.04, x64=${{ matrix.enable-x64}})"
|
||||
|
Loading…
x
Reference in New Issue
Block a user