Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tstellar committed Nov 19, 2024
1 parent e091245 commit 6cbd7fa
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/actions/prepare-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ inputs:
runs:
using: "composite"
steps:
# It's not possible to install dnf via pip. It fails with the error:
# RuntimeError: Install aborted - please install python-dnf from distribution system.
- name: "Install dnf"
shell: bash
run: |
sudo apt-get install python3-dnf
python3 -c 'import dnf'
- name: "Setup python"
uses: actions/setup-python@v5
with:
Expand All @@ -26,10 +34,7 @@ runs:
shell: bash
run: pip install -r ${{ inputs.checkout-path }}/requirements.txt

# It's not possible to install dnf via pip. It fails with the error:
# RuntimeError: Install aborted - please install python-dnf from distribution system.
- name: "Install dnf"
- name: "Test dnf"
shell: bash
run: |
sudo apt-get install python3-dnf
python3 -c 'import dnf'

0 comments on commit 6cbd7fa

Please sign in to comment.