Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit b70b123

Browse files
authored
Separate out Python 2.7 to use custom image (#1222)
1 parent d358613 commit b70b123

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
runs-on: ubuntu-20.04
1414
env:
1515
# We use these variables to convert between tox and GHA version literals
16-
py27: 2.7
1716
py35: 3.5
1817
py36: 3.6
1918
py37: 3.7
@@ -23,7 +22,7 @@ jobs:
2322
# ensures the entire test matrix is run, even if one permutation fails
2423
fail-fast: false
2524
matrix:
26-
python-version: [py27, py35, py36, py37, py38, py39]
25+
python-version: [py35, py36, py37, py38, py39]
2726
steps:
2827
- name: Checkout code
2928
uses: actions/checkout@v2
@@ -42,3 +41,21 @@ jobs:
4241
key: v1-tox-${{ matrix.python-version }}-${{ hashFiles('tox.ini', '**/setup.py') }}
4342
- name: run tox
4443
run: tox -f ${{ matrix.python-version }}
44+
build-27:
45+
runs-on: ubuntu-20.04
46+
container:
47+
image: python:2.7.18-buster
48+
env:
49+
py27: 2.7
50+
steps:
51+
- name: Checkout code
52+
uses: actions/checkout@v2
53+
- name: Install tox
54+
run: pip install -U tox==3.27.1 tox-factor
55+
- name: Cache tox environment
56+
uses: actions/cache@v2
57+
with:
58+
path: .tox
59+
key: v1-tox-27-${{ hashFiles('tox.ini', '**/setup.py') }}
60+
- name: Run tox for Python 2.7
61+
run: tox -f py27

0 commit comments

Comments
 (0)