Skip to content

Commit 82c595e

Browse files
committed
github-ci: Run PyPI package test on AArch64 and Ubuntu 24.04
This will catch any issues with AArch64 packages like the one that recently occured with 0.14.1.
1 parent 0b530df commit 82c595e

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed
Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,42 @@
11
---
2-
name: Install package from PyPI and run unit tests on Ubuntu 20.04
2+
name: Install package from PyPI and run unit tests
33
on:
44
workflow_dispatch:
55
inputs:
66
pypi_version:
77
description: "Version specifier to install from PyPI"
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: false
12+
913
jobs:
1014
run:
11-
name: Install from PyPI and run unit tests
12-
runs-on: ubuntu-22.04
15+
name: Install PyPI binary package and run unit tests
16+
strategy:
17+
matrix:
18+
ubuntu_version:
19+
- "ubuntu-22.04"
20+
- "ubuntu-24.04"
21+
- "ubuntu-22.04-arm"
22+
- "ubuntu-24.04-arm"
23+
runs-on: ${{ matrix.ubuntu_version }}
1324
steps:
1425
- name: Checkout
1526
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
1627
- name: Install dependencies
1728
run: |
18-
sudo apt update
19-
sudo apt install python3-setuptools \
20-
systemd dbus python3 python3-pip python3-jinja2
29+
sudo apt-get update
30+
sudo apt-get install dbus python3 python3-pip python3-venv
2131
- name: Install package
2232
run: |
23-
sudo pip3 install "sdbus ${SDBUS_VERSION}"
33+
python3 -m venv venv
34+
./venv/bin/pip3 install --only-binary ':all:' "sdbus ${SDBUS_VERSION}"
2435
env:
2536
SDBUS_VERSION: ${{ inputs.pypi_version }}
2637
- name: List package
2738
run: |
28-
pip3 list | grep sdbus
39+
./venv/bin/pip3 list | grep sdbus
2940
- name: Run unit tests
3041
run: |
31-
python3 -m unittest
42+
./venv/bin/python3 -m unittest

0 commit comments

Comments
 (0)