File tree 2 files changed +28
-8
lines changed
2 files changed +28
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : Run and Apply Linter
2
+ on :
3
+ workflow_dispatch :
4
+ pull_request :
5
+ branches : [ master ]
6
+ jobs :
7
+ run-and-apply :
8
+ runs-on : ubuntu-latest
9
+ strategy :
10
+ max-parallel : 1
11
+ steps :
12
+ - name : Checkout main branch
13
+ uses : actions/checkout@v2
14
+ with :
15
+ ref : ${{ github.event.pull_request.head.ref }}
16
+ - name : Install dependencies
17
+ run : |
18
+ pip install --upgrade pip setuptools wheel
19
+ pip install "tox<4.0.0"
20
+ - name : Permission workaround
21
+ run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
22
+ - name : Run linter
23
+ run : tox -e lint
24
+ - name : Commit changes
25
+ uses : EndBug/add-and-commit@v9
26
+ with :
27
+ message : ' Commit automated linter changes'
28
+ add : ' .'
Original file line number Diff line number Diff line change 20
20
- name : Install requirements
21
21
run : |
22
22
python3 -m pip install -r requirements.txt
23
- - name : Run linter
24
- run : |
25
- tox -e lint
26
- - name : Commit linter changes
27
- uses : EndBug/add-and-commit@v9
28
- with :
29
- message : ' Apply linter changes'
30
- add : ' .'
31
23
- name : Run tests
32
24
run : |
33
25
make test
You can’t perform that action at this time.
0 commit comments