We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb4a1f8 commit f0ee68bCopy full SHA for f0ee68b
.github/workflows/pre-commit.yml
.github/workflows/test-before-pr.yml
@@ -1,14 +1,24 @@
1
name: Test before PR
2
3
on:
4
- workflow_run:
5
- workflows:
6
- - "Pre-commit"
7
- types:
8
- - completed
+ pull_request:
+ branches: ["main"]
9
10
jobs:
+ lint:
+ runs-on: ubuntu-22.04
+ 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]
20
test:
21
+ needs: lint
22
uses: ./.github/workflows/base-test.yml
23
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#passing-inputs-and-secrets-to-a-reusable-workflow
24
secrets: inherit
0 commit comments