Skip to content

Commit

Permalink
CI: use system Python 2.7.
Browse files Browse the repository at this point in the history
Fixes:

    ##[warning]The support for python 2.7 will be removed on June 19. Related issue: actions/setup-python#672
    Version 2.7 was not found in the local cache
    ##[error]The version '2.7' with architecture 'x64' was not found for Ubuntu 20.04.
  • Loading branch information
jwilk committed Jan 26, 2024
1 parent 417d2dd commit bcaa941
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,26 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: set up Python ${{matrix.python-version}}
if: matrix.python-version != '2.7'
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
- name: set up APT
if: matrix.python-version == '2.7'
run: |
printf 'Apt::Install-Recommends "false";\n' | sudo tee -a /etc/apt/apt.conf
sudo apt-get update
- name: set up Python 2.7 (with APT + get-pip)
if: matrix.python-version == '2.7'
run: |
sudo apt-get install -y python-is-python2 python2-dev
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python get-pip.py
rm get-pip.py
- name: upgrade TLS stack
if: matrix.python-version == '2.7'
run: |
sudo apt-get install --only-upgrade -y ca-certificates libgnutls30
- name: run pydiatra
run: |
pip install pydiatra
Expand Down

0 comments on commit bcaa941

Please sign in to comment.