-
-
Notifications
You must be signed in to change notification settings - Fork 23
42 lines (40 loc) · 1.17 KB
/
ubuntu_pypi_test.yml
File metadata and controls
42 lines (40 loc) · 1.17 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
---
name: Install package from PyPI and run unit tests
on:
workflow_dispatch:
inputs:
pypi_version:
description: "Version specifier to install from PyPI"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
run:
name: Install PyPI binary package and run unit tests
strategy:
matrix:
ubuntu_version:
- "ubuntu-22.04"
- "ubuntu-24.04"
- "ubuntu-22.04-arm"
- "ubuntu-24.04-arm"
runs-on: ${{ matrix.ubuntu_version }}
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install dbus python3 python3-pip python3-venv
- name: Install package
run: |
python3 -m venv venv
./venv/bin/pip3 install --only-binary ':all:' "sdbus ${SDBUS_VERSION}"
env:
SDBUS_VERSION: ${{ inputs.pypi_version }}
- name: List package
run: |
./venv/bin/pip3 list | grep sdbus
- name: Run unit tests
run: |
./venv/bin/python3 -m unittest