Repository navigation
85 lines (73 loc) · 1.99 KB
/
Copy pathci.yml
File metadata and controls
85 lines (73 loc) · 1.99 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI
on:
push:
branches:
- main
paths-ignore:
- '**.md'
- 'docs/**'
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
test-suite:
name: Unit Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run Test Suite
run: |
make test
multi-distro-matrix:
name: Multi-Distro Verification (${{ matrix.distro }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro:
- 'debian:bookworm-slim'
- 'debian:sid-slim'
- 'ubuntu:24.04'
- 'ubuntu:22.04'
container:
image: ${{ matrix.distro }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Runtime Build Dependencies
run: |
apt-get update -qq
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq python3 make binutils tar gzip git iputils-ping sudo
git config --global --add safe.directory "*" || true
- name: Execute Test Suite
run: |
make test
- name: Verify Package Build
run: |
make deb
test -f dist/aero-linux_*.deb || (echo "Debian package not found" && exit 1)
package-build:
name: Debian Package Build & Artifact Check
runs-on: ubuntu-latest
needs: test-suite
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Debian Package
run: |
make deb
- name: Verify .deb Artifact
run: |
ls -la dist/
test -f dist/aero-linux_*.deb || (echo "Debian package not found" && exit 1)