File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on :
4+ pull_request :
5+
6+ concurrency :
7+ group : lint-${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
8+ cancel-in-progress : true
9+
10+ defaults :
11+ run :
12+ shell : bash -l -eo pipefail {0}
13+
14+ jobs :
15+ lint :
16+ runs-on : ubuntu-latest
17+ strategy :
18+ matrix :
19+ python-version : ['3.11']
20+ steps :
21+ - name : Check out repo
22+ uses : actions/checkout@v3
23+ - name : Setup python
24+ uses : actions/setup-python@v4
25+ with :
26+ python-version : ${{ matrix.python-version }}
27+ - name : Update pip
28+ run : python -m pip install --upgrade pip
29+ - name : Install lint utilities
30+ run : |
31+ python -m pip install pre-commit
32+ pre-commit install-hooks
33+ - id : file_changes
34+ 35+ with :
36+ prNumber : ${{ github.event.number }}
37+ output : ' '
38+ - name : Lint modified files
39+ run : pre-commit run --files ${{ steps.file_changes.outputs.files }}
You can’t perform that action at this time.
0 commit comments