Debian Codegraph @

.github/workflows/main.yml

raw
1 name: Build
2 on:
3 push:
4 branches:
5 - master
6 pull_request:
7 branches:
8 - master
9 jobs:
10 build:
11 name: Build
12 runs-on: ubuntu-latest
13 strategy:
14 fail-fast: false
15 matrix:
16 include:
17 - python-version: "3.13"
18 toxenv: pre-commit
19 - python-version: "3.9"
20 toxenv: min
21 - python-version: "3.9"
22 toxenv: min-all
23 - python-version: "3.9"
24 - python-version: "3.10"
25 - python-version: "3.11"
26 - python-version: "3.12"
27 - python-version: "3.13"
28 toxenv: all
29 - python-version: "3.13"
30 toxenv: scripts
31 - python-version: "3.12" # Keep in sync with tox.ini
32 toxenv: docs
33 - python-version: "3.13"
34 toxenv: twinecheck
35 steps:
36 - uses: actions/checkout@v3
37 - name: 'Set up Python ${{ matrix.python-version }}'
38 uses: actions/setup-python@v5
39 with:
40 python-version: ${{ matrix.python-version }}
41 - name: Install language-pack-fr
42 run: sudo apt-get update && sudo apt-get install -y language-pack-fr build-essential
43 - name: Install dependencies
44 run: |
45 python -m pip install --upgrade pip
46 pip install tox
47 - name: Run tests
48 run: tox -e ${{ matrix.toxenv || 'py' }}
49 - name: Upload coverage.xml to codecov
50 uses: codecov/codecov-action@v5
51 with:
52 token: ${{ secrets.CODECOV_TOKEN }}