|
16 | 16 | FORCE_COLOR: "1" |
17 | 17 |
|
18 | 18 | jobs: |
19 | | - ruff: |
| 19 | + lint: |
| 20 | + name: "Ruff & MyPy" |
20 | 21 | runs-on: ubuntu-latest |
21 | 22 |
|
22 | 23 | steps: |
23 | | - - uses: actions/checkout@v4 |
| 24 | + - uses: actions/checkout@v6 |
24 | 25 | - name: Set up Python |
25 | | - uses: actions/setup-python@v5 |
| 26 | + uses: actions/setup-python@v6 |
26 | 27 | with: |
27 | | - python-version: "3" |
28 | | - - name: Install pip |
29 | | - run: python -m pip install --upgrade pip |
30 | | - |
31 | | - - name: Install Ruff |
32 | | - run: python -m pip install "ruff==0.5.2" |
| 28 | + python-version: "3.13" |
| 29 | + - name: Install dependencies |
| 30 | + run: | |
| 31 | + python -m pip install --upgrade pip |
| 32 | + python -m pip install .[lint] pytest |
| 33 | + # Also install pytest here, otherwise mypy will complain about our test files |
33 | 34 |
|
34 | 35 | - name: Lint with Ruff |
35 | 36 | run: ruff check . --output-format github |
36 | 37 |
|
37 | 38 | - name: Format with Ruff |
38 | 39 | run: ruff format . --diff |
39 | 40 |
|
40 | | - mypy: |
41 | | - runs-on: ubuntu-latest |
42 | | - |
43 | | - steps: |
44 | | - - uses: actions/checkout@v4 |
45 | | - - name: Set up Python |
46 | | - uses: actions/setup-python@v5 |
47 | | - with: |
48 | | - python-version: "3" |
49 | | - - name: Install dependencies |
50 | | - run: | |
51 | | - python -m pip install --upgrade pip |
52 | | - python -m pip install ".[lint,test]" |
53 | | - - name: Type check with mypy |
54 | | - run: mypy |
| 41 | +# - name: Type check with MyPy |
| 42 | +# run: mypy |
| 43 | +# Skip MyPy check for now, see https://github.com/sphinx-doc/sphinx-argparse/issues/85 |
55 | 44 |
|
56 | 45 | twine: |
| 46 | + name: "Check packing with Twine" |
57 | 47 | runs-on: ubuntu-latest |
58 | 48 |
|
59 | 49 | steps: |
60 | | - - uses: actions/checkout@v4 |
| 50 | + - uses: actions/checkout@v6 |
61 | 51 | - name: Set up Python |
62 | | - uses: actions/setup-python@v5 |
| 52 | + uses: actions/setup-python@v6 |
63 | 53 | with: |
64 | | - python-version: "3" |
| 54 | + python-version: "3.13" |
65 | 55 | - name: Install dependencies |
66 | 56 | run: | |
67 | 57 | python -m pip install --upgrade pip |
68 | 58 | python -m pip install --upgrade twine build |
69 | | - - name: Lint with twine |
| 59 | + - name: Check with twine |
70 | 60 | run: | |
71 | 61 | python -m build . |
72 | 62 | twine check dist/* |
0 commit comments