-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 882 Bytes
/
precommit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Run `pre-commit` on PRs
on:
pull_request:
branches: [master, qa, dev]
push:
branches: [master, qa, dev]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: "poetry"
- run: poetry install
- uses: pre-commit/[email protected]
- uses: pre-commit-ci/[email protected]
if: always()
# Remove the maintenance burden for required status checks.
# https://github.com/marketplace/actions/alls-green#why
all-green:
if: always()
needs:
- main
runs-on: ubuntu-latest
steps:
- name: Ensure all other jobs pass successfully.
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}