Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update CI for current deployment targets #47

Merged
merged 6 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["2.7", "3.8"]
python:
- "3.8"
- "3.9"
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand All @@ -36,7 +38,9 @@ jobs:
strategy:
fail-fast: false
matrix:
centos: ["7", "stream8"]
centos:
- stream8
- stream9
container:
image: quay.io/centos/centos:${{ matrix.centos }}
steps:
Expand Down
17 changes: 6 additions & 11 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,17 @@ set -e

export LC_ALL=en_US.UTF-8

TEST_ON_EL=$([ -f /etc/redhat-release ] && [ -x /usr/bin/yum ] && echo "true" || echo "false")
PYTHON=python
PYTHON=python3

if [[ "${TEST_ON_EL}" == "true" ]]; then
if [[ -f /etc/redhat-release ]]; then
. /etc/os-release
if [[ $VERSION_ID == 8 ]] ; then
# TODO: where's docbook-utils on EL8?
PACKAGES="python3 python3-setuptools"
PYTHON="python3"
# This is where Python 3 on EL8 installs packages to
mkdir -p /usr/local/lib/python3.6/site-packages
elif [[ $VERSION_ID == 7 ]] ; then
PACKAGES="docbook-utils python-setuptools"
REPOS="--enablerepo=powertools"
else
REPOS=""
fi

yum install -y openssl rpm-build tree $PACKAGES
dnf install ${REPOS} -y openssl rpm-build tree python3 python3-setuptools docbook-utils glibc-langpack-en
fi

if [[ -x /usr/bin/docbook2man ]] ; then
Expand Down
Loading