Spaces:
Sleeping
Sleeping
大宅康喜
commited on
Update pysen-python-app.yaml
Browse files
.github/workflow/pysen-python-app.yaml
CHANGED
@@ -33,10 +33,21 @@ jobs:
|
|
33 |
run: |
|
34 |
poetry install
|
35 |
|
36 |
-
- name:
|
37 |
run: |
|
38 |
-
poetry run
|
|
|
|
|
|
|
|
|
39 |
|
40 |
- name: Test with pytest
|
41 |
run: |
|
42 |
poetry run pytest tests/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
run: |
|
34 |
poetry install
|
35 |
|
36 |
+
- name: Run black
|
37 |
run: |
|
38 |
+
poetry run black .
|
39 |
+
|
40 |
+
- name: Run isort
|
41 |
+
run: |
|
42 |
+
poetry run isort .
|
43 |
|
44 |
- name: Test with pytest
|
45 |
run: |
|
46 |
poetry run pytest tests/*
|
47 |
+
|
48 |
+
- name: Commit changes
|
49 |
+
uses: stefanzweifel/git-auto-commit-action@v4
|
50 |
+
with:
|
51 |
+
commit_message: Apply code formatting changes
|
52 |
+
file_pattern: '*.py'
|
53 |
+
|