Skip to content

Commit 970ca1d

Browse files
authored
Merge pull request #35 from APLA-Toolbox/improve-devops
Improve devops
2 parents f637bb6 + 1248a63 commit 970ca1d

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/format.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: format
2+
on:
3+
pull_request:
4+
branches: [master]
5+
jobs:
6+
format:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
ref: ${{ github.head_ref }}
12+
- uses: actions/checkout@v1
13+
- name: Set up Python 3.7
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.7
17+
- name: Install formatter dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
python -m pip install black
21+
- name: Format with black
22+
run: |
23+
black .
24+
- name: Commit changes
25+
uses: stefanzweifel/git-auto-commit-action@v4.1.2
26+
with:
27+
commit_message: Apply formatting changes
28+
branch: ${{ github.head_ref }}

0 commit comments

Comments
 (0)