[RHELC-1037] Adds in a dependency for six for the auto-gen manpages action #18
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-manpages | |
pip install six | |
pip install pexpect | |
- name: Install python3-rpm package with apt-get | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y python3-rpm | |
- name: Check Python version | |
run: | | |
# Check the Python version | |
python_version=$(python3 -V 2>&1) | |
if [[ "$python_version" == *"Python 3."* ]]; then | |
echo "Using Python version: $python_version" | |
else | |
echo "ERROR: Expected Python 3.x, but found $python_version" | |
exit 1 | |
fi | |
- name: Check python3-rpm installation | |
run: | | |
# Check if python3-rpm is installed correctly | |
if python3 -c "import rpm" &>/dev/null; then | |
echo "python3-rpm is installed successfully." | |
else | |
echo "ERROR: python3-rpm installation failed." | |
exit 1 | |
fi | |
- name: Generate Manpages | |
run: | | |
chmod +x scripts/manpage_generation.sh | |
bash scripts/manpage_generation.sh |