[RHELC-1037] Adds in a dependency for six for the auto-gen manpages action #25
Workflow file for this run
This file contains 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: 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 |