Skip to content

Commit bd0ec67

Browse files
committed
Upgrade the Ubuntu runner
1 parent ee3b26a commit bd0ec67

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ on:
77
jobs:
88
unit-tests:
99
name: Test on Python v${{ matrix.python-version }}
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
strategy:
1212
matrix:
1313
include:
1414
- pipenv-version: '2022.4.8'
1515
python-version: '3.6'
16+
use-pyenv: true
1617
- pipenv-version: '2022.4.8'
1718
python-version: '3.7'
19+
use-pyenv: true
1820
- pipenv-version: '2022.4.8'
1921
python-version: '3.8'
2022
- pipenv-version: '2022.4.8'
@@ -27,17 +29,30 @@ jobs:
2729
python-version: '3.12'
2830
- pipenv-version: '2024.4.0'
2931
python-version: '3.13'
32+
- pipenv-version: '2024.4.0'
33+
python-version: '3.14'
3034

3135
steps:
3236
- name: Checkout the repository
33-
uses: actions/checkout@v2
37+
uses: actions/checkout@v4
3438
with:
3539
persist-credentials: false
3640

3741
- name: Install build essentials
3842
run: sudo apt-get --yes install build-essential
3943

44+
- name: Install Python via pyenv (for EOL versions)
45+
if: matrix.use-pyenv
46+
run: |
47+
curl https://pyenv.run | bash
48+
export PATH="$HOME/.pyenv/bin:$PATH"
49+
eval "$(pyenv init -)"
50+
pyenv install ${{ matrix.python-version }}
51+
pyenv global ${{ matrix.python-version }}
52+
echo "$HOME/.pyenv/shims" >> $GITHUB_PATH
53+
4054
- name: Set up Python
55+
if: ${{ !matrix.use-pyenv }}
4156
uses: actions/setup-python@v2
4257
with:
4358
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)