Skip to content

Commit

Permalink
update .github/workflows/pre-commit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wenting-zhao committed Sep 11, 2024
1 parent 460fa76 commit fbe0aae
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,23 @@ on:
jobs:
pre-commit:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install dependencies
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install packages
run: |
python -m pip install --upgrade pip
pip install --upgrade pip
pip install datasets docker GitPython hydra-core modal pre-commit
pip list
- name: Lint
run: pre-commit run -a
run: pre-commit run --all-files --show-diff-on-failure --color always

0 comments on commit fbe0aae

Please sign in to comment.