Install package from PyPI and run unit tests #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Install package from PyPI and run unit tests | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| pypi_version: | |
| description: "Version specifier to install from PyPI" | |
| 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 update | |
| sudo apt install dbus python3 python3-pip | |
| - name: Install package | |
| run: | | |
| sudo pip3 install --break-system-packages --only-binary ':all:' "sdbus ${SDBUS_VERSION}" | |
| env: | |
| SDBUS_VERSION: ${{ inputs.pypi_version }} | |
| - name: List package | |
| run: | | |
| pip3 list | grep sdbus | |
| - name: Run unit tests | |
| run: | | |
| python3 -m unittest |