Skip to content

Commit

Permalink
New debian validation pipeline (infra) (#1369)
Browse files Browse the repository at this point in the history
* New debian validation pipeline

* Fix dependency problem to checkbox-support

---------

Co-authored-by: Paolo Gentili <[email protected]>
  • Loading branch information
Hook25 and p-gentili authored Jul 25, 2024
1 parent 9a1afd7 commit 0e188c6
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 2 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/deb_validator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Verify debian packages

on:
push:
branches: [ main ]
paths:
- checkbox-ng/**
- checkbox-support/**
- providers/base/**
- providers/certification-client/**
- providers/certification-server/**
- providers/genio/**
- providers/gpgpu/**
- providers/resource/**
- providers/sru/**
- providers/tpm2/**
pull_request:
branches: [ main ]
paths:
- checkbox-ng/**
- checkbox-support/**
- providers/base/**
- providers/certification-client/**
- providers/certification-server/**
- providers/gpgpu/**
- providers/resource/**
- providers/sru/**
- providers/tpm2/**
workflow_dispatch:

jobs:
deb_validation:
strategy:
fail-fast: false
matrix:
# Version of Ubuntu
# note: no 16, we don't support debs for 16 anymore
# no 18, not supported by github
os:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
path:
- checkbox-ng
- checkbox-support
- providers/base
- providers/certification-client
- providers/certification-server
- providers/gpgpu
- providers/resource
- providers/sru
- providers/tpm2
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Checkbox monorepo
uses: actions/checkout@v4
# needed by providers that pull checkbox-support
- name: Install PPA and dependencies
run: |
sudo add-apt-repository ppa:checkbox-dev/edge
sudo apt-get update
sudo apt-get install -qq -y dpkg-dev
- name: Prepare installation
run: mv ${{ matrix.path }}/debian .
- name: Install dependencies
run: sudo apt-get build-dep .
- name: Build source, test and build binary
run: dpkg-buildpackage
9 changes: 7 additions & 2 deletions checkbox-support/debian/control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Source: checkbox-support
Section: python
Priority: optional
Maintainer: Checkbox Developers <[email protected]>
Maintainer: Checkbox Developers <[email protected]>
Uploaders: Sylvain Pineau <[email protected]>
Build-Depends:
debhelper (>= 9),
Expand All @@ -20,7 +20,10 @@ Build-Depends:
python3-requests-unixsocket,
python3-setuptools,
python3-setuptools-scm,
python3-yaml
python3-yaml,
python3-numpy,
python3-opencv,
python3-systemd,
Standards-Version: 3.9.6
X-Python3-Version: >= 3.5
XS-Testsuite: autopkgtest
Expand All @@ -43,6 +46,8 @@ Depends: gir1.2-gudev-1.0,
udisks2,
${misc:Depends},
${python3:Depends}
Recommends: python3-opencv,
python3-numpy
Description: collection of Python modules used by PlainBox providers
This package contains the CheckBox support Python 3 library, primarily used by
the CheckBox provider.
Expand Down

0 comments on commit 0e188c6

Please sign in to comment.