-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (36 loc) · 868 Bytes
/
pre-commit.yml
File metadata and controls
38 lines (36 loc) · 868 Bytes
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
38
name: Run pre-commit in probtest
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
probtest-pre-commit:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.8
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Configure Poetry
run: |
poetry config virtualenvs.in-project true
- name: Install dependencies
run: |
poetry install
- name: Install pre-commit hooks
run: |
poetry run pre-commit install-hooks
- name: Run pre-commit hooks
run: |
poetry run pre-commit run --all-files