Skip to content

Commit

Permalink
Run pre-commit in CI (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl authored Nov 25, 2024
1 parent e7aeab7 commit d3583cd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ concurrency:

jobs:
pre-commit-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Set $PY environment variable
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: pre-commit/[email protected]

project-pre-commit-check:
strategy:
matrix:
python-version: ["3.12", "3.11", "3.10"]
Expand Down Expand Up @@ -45,6 +56,7 @@ jobs:

needs:
- pre-commit-check
- project-pre-commit-check

runs-on: ubuntu-latest

Expand Down

0 comments on commit d3583cd

Please sign in to comment.