-
Notifications
You must be signed in to change notification settings - Fork 73
60 lines (55 loc) · 1.47 KB
/
build.yml
File metadata and controls
60 lines (55 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
# vi: ts=2 sw=2 et:
# SPDX-License-Identifier: LGPL-2.1-or-later
#
name: Build
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04", "ubuntu-24.04"]
python: [
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
]
exclude:
- os: "ubuntu-22.04"
python: "3.13"
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.workflow }}-${{ matrix.python }}-${{ matrix.os }}-${{ github.ref }}
cancel-in-progress: true
name: Python ${{ matrix.python }} on ${{ matrix.os }}
steps:
- name: Repository checkout
uses: actions/checkout@v4
- name: Configure Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install dependencies
run: |
sudo apt -y update
sudo apt -y install gcc libsystemd-dev
python -m pip install -U --break-system-packages pip build
# Note: The `pip install --group` is available on pip v25+
- name: Build (Python ${{ matrix.python }})
run: |
set -x
python -m build -Cbuild-dir=build
python -m pip install --group docs
python -m pip install .
cd build
python -m sphinx -b html -W -v ../docs html