Skip to content

Commit 3785714

Browse files
committed
Formatter github action
1 parent c17c011 commit 3785714

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Format Validator
2+
3+
on:
4+
push:
5+
paths:
6+
- 'validator/**'
7+
8+
jobs:
9+
main:
10+
name: Run Black
11+
runs-on: ubuntu-latest
12+
13+
defaults:
14+
run:
15+
working-directory: validator
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: '3.11'
25+
26+
- name: Install dependencies
27+
run: |
28+
pip3 install -r requirements.txt
29+
30+
- name: Run Black
31+
run: |
32+
black --check .

.github/workflows/validator_test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v4
1919

20-
- uses: actions/setup-python@v4
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
2122
with:
2223
python-version: '3.11'
2324

0 commit comments

Comments
 (0)