Debian Codegraph @

.github/workflows/pythonpackage.yml

raw symbols SCIP
1 name: Python package
2
3 on:
4 push:
5 pull_request:
6
7 jobs:
8 lint:
9 runs-on: ubuntu-latest
10 steps:
11 - uses: actions/checkout@v4
12
13 - name: Set up Python
14 uses: actions/setup-python@v5
15 with:
16 python-version: "3.12"
17
18 - name: Install linters
19 run: pip install ruff==0.15.4 pyright==1.1.408
20
21 - name: Install project dependencies (for pyright)
22 run: pip install -e ".[test]"
23
24 - name: Ruff lint
25 run: ruff check .
26
27 - name: Ruff format check
28 run: ruff format --check .
29
30 - name: Pyright
31 run: pyright s_tui/
32
33 test:
34 runs-on: ubuntu-latest
35 strategy:
36 max-parallel: 4
37 matrix:
38 python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
39
40 steps:
41 - uses: actions/checkout@v4
42
43 - name: Set up Python ${{ matrix.python-version }}
44 uses: actions/setup-python@v5
45 with:
46 python-version: ${{ matrix.python-version }}
47
48 - name: Install dependencies
49 run: |
50 python -m pip install --upgrade pip
51 pip install -e ".[test]"
52
53 - name: Test with pytest
54 run: |
55 pytest
56 python -m s_tui.s_tui -j