Skip to content

Commit

Permalink
actions: Add ability to specify the version to install from PyPI
Browse files Browse the repository at this point in the history
Because RC versions are not installed by default a specifier must
be used.
  • Loading branch information
igo95862 committed Mar 17, 2024
1 parent bc50226 commit 2182d26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ubuntu_pypi_test.yml
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 2182d26

Please sign in to comment.