Skip to content

Commit f0ee68b

Browse files
committed
fix hooks
1 parent bb4a1f8 commit f0ee68b

File tree

2 files changed

+15
-25
lines changed

2 files changed

+15
-25
lines changed

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
name: Test before PR
22

33
on:
4-
workflow_run:
5-
workflows:
6-
- "Pre-commit"
7-
types:
8-
- completed
4+
pull_request:
5+
branches: ["main"]
96

107
jobs:
8+
lint:
9+
runs-on: ubuntu-22.04
10+
name: Linting on Python
11+
steps:
12+
- name: Checkout Code
13+
uses: actions/checkout@v5
14+
- name: Set up Python3
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.10'
18+
- name: Lint with pre-commit
19+
uses: pre-commit/[email protected]
1120
test:
21+
needs: lint
1222
uses: ./.github/workflows/base-test.yml
1323
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#passing-inputs-and-secrets-to-a-reusable-workflow
1424
secrets: inherit

0 commit comments

Comments
 (0)