Skip to content

Commit

Permalink
use a container for python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Feb 9, 2024
1 parent be1e4c9 commit ccc6768
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@ env:
jobs:
build:
runs-on: ubuntu-20.04
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
python:
- "2.7"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
include:
- python: "2.7"
container: "python:2.7"
env:
PYTHON: ${{ matrix.python }}
steps:
Expand All @@ -29,6 +32,10 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
if: matrix.container == null
- name: Install sudo
run: apt-get update && apt-get install -y sudo
if: matrix.container != null
- name: prepare a redhat-uep.pem, even if we run on Ubuntu
run: sudo mkdir -p /etc/rhsm/ca/ && sudo curl -o /etc/rhsm/ca/redhat-uep.pem https://ftp.redhat.com/redhat/convert2rhel/redhat-uep.pem
- name: Install system dependencies
Expand All @@ -39,6 +46,7 @@ jobs:
for file in /usr/lib/python3/dist-packages/rpm/_rpm*.cpython-*.so; do
sudo ln -s ${file} $(echo ${file} | sed 's/\.cpython[^.]*//');
done
if: matrix.container == null
- name: Install dependencies
run: pip install tox tox-gh-actions
- name: Run tests
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ python =
3.9: py39
3.10: py310
3.11: py311
problem_matcher = False

0 comments on commit ccc6768

Please sign in to comment.