Skip to content

Commit

Permalink
github: test py2 on el7
Browse files Browse the repository at this point in the history
GitHub no longer supports running Python 2.7 natively.
  • Loading branch information
ktdreyer committed Jul 18, 2023
1 parent a9ba96c commit d21953d
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,42 @@ name: tests
on: [push, pull_request]

jobs:
tox27:
runs-on: ubuntu-latest
container:
image: registry.access.redhat.com/rhel7:latest
steps:
- uses: actions/checkout@v3
- name: Add CentOS Yum repos
run: |
cat <<EOF > /etc/yum.repos.d/centos.repo
[base]
name=CentOS-7 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=7&arch=\$basearch&repo=os
baseurl=http://mirror.centos.org/centos/7/os/\$basearch/
gpgcheck=1
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7
[updates]
name=CentOS-7 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=7&arch=\$basearch&repo=updates
baseurl=http://mirror.centos.org/centos/7/updates/\$basearch/
gpgcheck=1
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7
EOF
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- name: Install dependencies
run: |
yum --setopt=skip_missing_names_on_install=False -y install krb5-devel python2-devel python2-pip python-tox git-core gcc
- name: Test with tox
run: |
tox -e py27 -- errata_tool/tests
tox:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 5
matrix:
include:
- python-version: 2.7
os: ubuntu-20.04
- python-version: 3.6
os: ubuntu-20.04
- python-version: 3.9
Expand Down

0 comments on commit d21953d

Please sign in to comment.