mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
ci: fix python 2.7 CI tests by manually installing python2.7 package
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>
This commit is contained in:
parent
e791fb9440
commit
4371036f14
1 changed files with 8 additions and 1 deletions
9
.github/workflows/python-unit-test.yml
vendored
9
.github/workflows/python-unit-test.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue