File tree Expand file tree Collapse file tree 1 file changed +11
-22
lines changed
Expand file tree Collapse file tree 1 file changed +11
-22
lines changed Original file line number Diff line number Diff line change 11name : Linting
2-
32on :
43 push :
54 branches : [main]
65 pull_request :
76 branches : [main]
7+ workflow_dispatch :
88
99jobs :
1010 lint :
1111 runs-on : ubuntu-latest
1212 strategy :
1313 matrix :
14- tool : [black, isort, flake8]
15- max-parallel : 3
16- fail-fast : false
14+ python-version : ["3.13"]
1715 steps :
18- - name : Checkout code
19- uses : actions/checkout@v4
16+ - name : Checkout repository
17+ uses : actions/checkout@v3
2018
21- - name : Set up Python with caching
22- uses : actions/setup-python@v5
19+ - name : Set up Python ${{ matrix.python-version }}
20+ uses : actions/setup-python@v4
2321 with :
24- python-version : ' 3.13'
25- cache : ' pip'
26-
27- - name : Install dependencies
28- run : |
29- python -m pip install --upgrade pip
30- pip install -r requirements/dev.txt
22+ python-version : ${{ matrix.python-version }}
3123
32- - name : Run ${{ matrix.tool }}
33- shell : bash
34- env :
35- TOOL : ${{ matrix.tool }}
36- run : |
37- $TOOL --version
38- $TOOL . --check --verbose
24+ - name : Run Ruff via Action
25+ uses : astral-sh/ruff-action@v3.2.2
26+ with :
27+ github-token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments