Skip to content

Commit

Permalink
ci: fix python 2.7 CI tests by manually installing python2.7 package
Browse files Browse the repository at this point in the history
We use the setup-python github action.  This has dropped support for
python 2.7.  Instead, just manually install the python2.7 package.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
  • Loading branch information
richm committed Jun 28, 2023
1 parent 49548d8 commit f14a6fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/python-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ jobs:
- name: checkout PR
uses: actions/checkout@v3

- name: Set up Python
- name: Set up Python 2.7
if: ${{ matrix.pyver_os.ver == '2.7' }}
run: |
set -euxo pipefail
sudo apt install -y python2.7
- name: Set up Python 3
if: ${{ matrix.pyver_os.ver != '2.7' }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyver_os.ver }}
Expand Down

0 comments on commit f14a6fa

Please sign in to comment.