File tree Expand file tree Collapse file tree 2 files changed +24
-8
lines changed
Expand file tree Collapse file tree 2 files changed +24
-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 : Permission workaround
17+ run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
18+ - name : Run linter
19+ run : tox -e lint
20+ - name : Commit changes
21+ uses : EndBug/add-and-commit@v9
22+ with :
23+ message : ' Commit automated linter changes'
24+ add : ' .'
Original file line number Diff line number Diff line change 2020 - name : Install requirements
2121 run : |
2222 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 : ' .'
3123 - name : Run tests
3224 run : |
3325 make test
You can’t perform that action at this time.
0 commit comments