-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (36 loc) · 939 Bytes
/
test-formatting.yml
File metadata and controls
38 lines (36 loc) · 939 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: Test Formatting
on:
schedule:
- cron: 30 05 15 * *
workflow_dispatch:
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- uses: actions/setup-node@v2
with:
node-version: "14"
- name: Code Formatting (App)
run: |
pip install isort black
isort main.py
isort setup.py
isort utils.py
black main.py
black setup.py
black utils.py
- name: Code Formatting (website)
run: |
npm i -g prettier
cd docs
npx prettier --write .
- uses: fregante/setup-git-user@v1
- name: Commit
run: |
git add .
git commit -m "style: Code Formatting Workflow" -m "Either triggered by cron or workflow_dispatch"
git push --force