Skip to content

[RHELC-1037] Adds in a dependency for six for the auto-gen manpages action #25

[RHELC-1037] Adds in a dependency for six for the auto-gen manpages action

[RHELC-1037] Adds in a dependency for six for the auto-gen manpages action #25

name: Generate Manpages
on:
pull_request:
branches:
- main
jobs:
generate-manpages:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: |
pip install argparse-manpage
pip install six
pip install pexpect
pip install rpm
- name: Install python3-rpm package with apt-get
run: |
sudo apt-get update
sudo apt-get install -y python3-rpm
- name: Check RPM Module Location
run: python3 -c "import rpm; print(rpm.__file__)"
- name: Reinstall python3-rpm
run: sudo apt-get install --reinstall -y python3-rpm
- name: Check RPM Module Availability
run: python3 -c "import rpm; print(rpm)"
- name: Verify python3-rpm installation
run: |
if python3 -c "import rpm" &>/dev/null; then
echo "python3-rpm is installed successfully."
else
echo "ERROR: python3-rpm installation failed."
dpkg -l | grep python3-rpm
exit 1
fi
- name: Generate Manpages
run: |
chmod +x scripts/manpage_generation.sh
bash scripts/manpage_generation.sh