Skip to content

Commit fbe0aae

Browse files
committed
update .github/workflows/pre-commit.yml
1 parent 460fa76 commit fbe0aae

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/pre-commit.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,23 @@ on:
88
jobs:
99
pre-commit:
1010
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.12"]
14+
1115
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-python@v3
14-
- name: Install dependencies
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install packages
1524
run: |
16-
python -m pip install --upgrade pip
25+
pip install --upgrade pip
1726
pip install datasets docker GitPython hydra-core modal pre-commit
27+
pip list
28+
1829
- name: Lint
19-
run: pre-commit run -a
30+
run: pre-commit run --all-files --show-diff-on-failure --color always

0 commit comments

Comments
 (0)