Skip to content

Commit

Permalink
Separate out Python 2.7 to use custom image (#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
lzchen authored Sep 15, 2023
1 parent d358613 commit b70b123
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
runs-on: ubuntu-20.04
env:
# We use these variables to convert between tox and GHA version literals
py27: 2.7
py35: 3.5
py36: 3.6
py37: 3.7
Expand All @@ -23,7 +22,7 @@ jobs:
# ensures the entire test matrix is run, even if one permutation fails
fail-fast: false
matrix:
python-version: [py27, py35, py36, py37, py38, py39]
python-version: [py35, py36, py37, py38, py39]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -42,3 +41,21 @@ jobs:
key: v1-tox-${{ matrix.python-version }}-${{ hashFiles('tox.ini', '**/setup.py') }}
- name: run tox
run: tox -f ${{ matrix.python-version }}
build-27:
runs-on: ubuntu-20.04
container:
image: python:2.7.18-buster
env:
py27: 2.7
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install tox
run: pip install -U tox==3.27.1 tox-factor
- name: Cache tox environment
uses: actions/cache@v2
with:
path: .tox
key: v1-tox-27-${{ hashFiles('tox.ini', '**/setup.py') }}
- name: Run tox for Python 2.7
run: tox -f py27

0 comments on commit b70b123

Please sign in to comment.