File tree Expand file tree Collapse file tree 2 files changed +27
-32
lines changed Expand file tree Collapse file tree 2 files changed +27
-32
lines changed Original file line number Diff line number Diff line change @@ -3,39 +3,37 @@ name: Run pre-commit in probtest
33on :
44 push :
55 branches :
6- - main
6+ - main
77 pull_request :
88 branches :
9- - main
9+ - main
1010
1111jobs :
1212 probtest-pre-commit :
1313 runs-on : ubuntu-latest
14+ defaults :
15+ run :
16+ shell : bash -l {0}
1417 steps :
15- - uses : actions/checkout@v2
16-
17- - name : Set up Python
18- uses : actions/setup-python@v2
19- with :
20- python-version : 3.10.8
21-
22- - name : Install Poetry
23- run : |
24- curl -sSL https://install.python-poetry.org | python3 -
25- echo "$HOME/.local/bin" >> $GITHUB_PATH
26-
27- - name : Configure Poetry
28- run : |
29- poetry config virtualenvs.in-project true
30-
31- - name : Install dependencies
32- run : |
33- poetry install
34-
35- - name : Install pre-commit hooks
36- run : |
37- poetry run pre-commit install-hooks
38-
39- - name : Run pre-commit hooks
40- run : |
41- poetry run pre-commit run --all-files
18+ - uses : actions/checkout@v2
19+ - name : Set up Python
20+ uses : actions/setup-python@v2
21+ with :
22+ python-version : 3.10.8
23+ - name : Install Poetry
24+ run : |
25+ curl -sSL https://install.python-poetry.org | python3 -
26+ echo "$HOME/.local/bin" >> $GITHUB_PATH
27+ - name : Configure Poetry
28+ run : |
29+ poetry config virtualenvs.in-project true
30+ - name : Install dependencies
31+ run : |
32+ poetry install
33+
34+ - name : Install pre-commit hooks
35+ run : |
36+ poetry run pre-commit install-hooks
37+ - name : Run pre-commit hooks
38+ run : |
39+ poetry run pre-commit run --all-files
Original file line number Diff line number Diff line change @@ -14,15 +14,12 @@ jobs:
1414 defaults :
1515 run :
1616 shell : bash -l {0}
17-
1817 steps :
1918 - uses : actions/checkout@v2
20-
2119 - name : Set up Python
2220 uses : actions/setup-python@v2
2321 with :
2422 python-version : 3.10.8
25-
2623 - name : Install Poetry
2724 run : |
2825 curl -sSL https://install.python-poetry.org | python3 -
You can’t perform that action at this time.
0 commit comments