File tree Expand file tree Collapse file tree 2 files changed +26
-8
lines changed
Expand file tree Collapse file tree 2 files changed +26
-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+ steps :
10+ - name : Checkout main branch
11+ uses : actions/checkout@v2
12+ with :
13+ ref : ${{ github.event.pull_request.head.ref }}
14+ - name : Install dependencies
15+ run : |
16+ pip install --upgrade pip setuptools wheel
17+ pip install "tox<4.0.0"
18+ - name : Permission workaround
19+ run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
20+ - name : Run linter
21+ run : tox -e lint
22+ - name : Commit changes
23+ uses : EndBug/add-and-commit@v9
24+ with :
25+ message : ' Commit automated linter changes'
26+ 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