Debian Codegraph @

.github/workflows/build.yml

raw
1 name: build
2
3 on:
4 push:
5 branches:
6 - 'main'
7 tags:
8 - '**'
9 pull_request:
10 branches:
11 - '**'
12
13 jobs:
14 tests:
15 strategy:
16 fail-fast: false
17 max-parallel: 4
18 matrix:
19 platform: [ubuntu-latest, windows-latest]
20 python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
21 include:
22 - python-version: '3.10'
23 tox-env: py310
24 - python-version: '3.11'
25 tox-env: py311
26 - python-version: '3.12'
27 tox-env: py312
28 - python-version: '3.13'
29 tox-env: py313
30 - python-version: '3.14'
31 tox-env: py314
32 # exclude:
33 # - platform: windows-latest
34 # python-version: 3.14
35
36 env:
37 TOXENV: ${{ matrix.tox-env }}
38
39 runs-on: ${{ matrix.platform }}
40
41 steps:
42 - uses: actions/checkout@v4
43 - name: Set up Python ${{ matrix.python-version }}
44 uses: actions/setup-python@v5
45 with:
46 python-version: ${{ matrix.python-version }}
47 allow-prereleases: true
48 - name: Install dependencies
49 run: |
50 python -m pip install --upgrade pip build tox coverage
51 - name: Test
52 run: |
53 python -m tox
54 - name: Upload Results
55 if: success()
56 uses: codecov/codecov-action@v5
57 with:
58 files: ./coverage.xml
59 flags: unittests
60 name: ${{ matrix.platform }}-${{ matrix.tox-env }}
61 token: ${{ secrets.CODECOV_TOKEN }} # required
62 fail_ci_if_error: false
63
64 lint:
65 strategy:
66 max-parallel: 4
67 matrix:
68 python-version: ['3.14']
69
70 env:
71 TOXENV: lint
72
73 runs-on: ubuntu-latest
74
75 steps:
76 - uses: actions/checkout@v4
77 - name: Set up Python ${{ matrix.python-version }}
78 uses: actions/setup-python@v5
79 with:
80 python-version: ${{ matrix.python-version }}
81 - name: Install dependencies
82 run: |
83 python -m pip install --upgrade pip build tox
84 - name: Lint
85 run: |
86 python -m tox
87
88 documents:
89 strategy:
90 max-parallel: 4
91 matrix:
92 python-version: ['3.14']
93
94 env:
95 TOXENV: documents
96
97 runs-on: ubuntu-latest
98
99 steps:
100 - uses: actions/checkout@v4
101 - name: Set up Python ${{ matrix.python-version }}
102 uses: actions/setup-python@v5
103 with:
104 python-version: ${{ matrix.python-version }}
105 - name: Setup Node
106 uses: actions/setup-node@v4
107 with:
108 node-version: '22'
109 - name: Install dependencies
110 run: |
111 python -m pip install --upgrade pip build tox
112 npm install --legacy-peer-deps
113 - name: Install Aspell
114 run: |
115 sudo apt-get install aspell aspell-en
116 - name: Build documents
117 run: |
118 npm run build
119 python -m tox