Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate out Python 2.7 to use custom image #1222

Merged
merged 10 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ commands =
bandit: bandit -r context/ contrib/ opencensus/ -lll -q
py39-setup: python setup.py check --restructuredtext --strict
py39-docs: bash ./scripts/update_docs.sh
; TODO deployment
; TODO deployment

Loading