aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Grainger <tagrain@gmail.com>2023-06-25 16:28:24 +0100
committerPaul Ganssle <git@m.ganssle.io>2023-11-13 09:04:31 -0500
commit99290566fdd9e70bc2e9e5fc802cb3279378a266 (patch)
treea6a98dc747aaf8d30b388f39de541e2533f9a827
parent296d419fe6bf3b22897f8f210735ac9c4e1cb796 (diff)
downloaddateutil-99290566fdd9e70bc2e9e5fc802cb3279378a266.tar.gz
Restore Python 2.7 testing in CI
-rw-r--r--.github/workflows/validate.yml13
1 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index 1ed90f6..1fea215 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -28,6 +28,10 @@ jobs:
exclude:
- python-version: "2.7"
os: "ubuntu-latest"
+ - python-version: "2.7"
+ os: "windows-latest"
+ - python-version: "2.7"
+ os: "macos-latest"
- python-version: "3.5"
os: "ubuntu-latest"
- python-version: "3.6"
@@ -44,7 +48,14 @@ jobs:
TOXENV: py
steps:
- uses: actions/checkout@v3
- - name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
+ - if: ${{ matrix.python-version == '2.7' }}
+ run: |
+ sudo apt-get install python-is-python2
+ curl -sSL https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
+ python get-pip.py
+ name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
+ - if: ${{ matrix.python-version != '2.7' }}
+ name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}