From 2182d26e58b89dfd869c7dde51bc2314089a7e3a Mon Sep 17 00:00:00 2001 From: igo95862 Date: Sun, 17 Mar 2024 15:11:04 +0500 Subject: [PATCH] actions: Add ability to specify the version to install from PyPI Because RC versions are not installed by default a specifier must be used. --- .github/workflows/ubuntu_pypi_test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_pypi_test.yml b/.github/workflows/ubuntu_pypi_test.yml index 9a1bc6c..816008d 100644 --- a/.github/workflows/ubuntu_pypi_test.yml +++ b/.github/workflows/ubuntu_pypi_test.yml @@ -2,6 +2,9 @@ name: Install package from PyPI and run unit tests on Ubuntu 20.04 on: workflow_dispatch: + inputs: + pypi_version: + description: "Version specifier to install from PyPI" jobs: run: @@ -17,7 +20,9 @@ jobs: systemd dbus python3 python3-pip python3-jinja2 - name: Install package run: | - sudo pip3 install sdbus>=0.8rc2 + sudo pip3 install "sdbus ${SDBUS_VERSION}" + env: + SDBUS_VERSION: ${{ inputs.pypi_version }} - name: List package run: | pip3 list | grep sdbus