Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2c3dfbc

Browse files
committedNov 10, 2022
Remove unsupported Python versions from CI
1 parent cb5a8a6 commit 2c3dfbc

File tree

5 files changed

+2
-160
lines changed

5 files changed

+2
-160
lines changed
 

‎.github/workflows/ci_tests.yaml

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,6 @@ on:
99
- cron: '0 0 * * *'
1010

1111
jobs:
12-
# Hypothesis no longer supports Python 2 and
13-
# there is a bug that appears with our slow tests
14-
# only on Python 2.
15-
# Until we also drop Python 2 support,
16-
# the workaround is just that we don't run the slow tests
17-
# on Python 2.
18-
py2-tests:
19-
runs-on: ${{ matrix.platform.os }}
20-
strategy:
21-
fail-fast: true
22-
matrix:
23-
platform:
24-
- os: ubuntu-latest
25-
architecture: x64
26-
- os: windows-latest
27-
architecture: x64
28-
# x86 builds are only meaningful for Windows
29-
- os: windows-latest
30-
architecture: x86
31-
- os: macos-latest
32-
architecture: x64
33-
category:
34-
- local-fast
35-
# These require credentials.
36-
# Enable them once we sort how to provide them.
37-
# - integ-fast
38-
# - examples
39-
steps:
40-
- uses: actions/checkout@v2
41-
- uses: actions/setup-python@v1
42-
with:
43-
python-version: 2.7
44-
architecture: ${{ matrix.platform.architecture }}
45-
- run: |
46-
python -m pip install --upgrade pip
47-
pip install --upgrade -r ci-requirements.txt
48-
- name: run test
49-
env:
50-
TOXENV: ${{ matrix.category }}
51-
run: tox -- -vv
5212
tests:
5313
runs-on: ${{ matrix.platform.os }}
5414
strategy:
@@ -65,8 +25,6 @@ jobs:
6525
- os: macos-latest
6626
architecture: x64
6727
python:
68-
- 3.5
69-
- 3.6
7028
- 3.7
7129
- 3.8
7230
- 3.x
@@ -110,22 +68,3 @@ jobs:
11068
env:
11169
TOXENV: ${{ matrix.category }}
11270
run: tox -- -vv
113-
upstream-py2:
114-
runs-on: ubuntu-latest
115-
strategy:
116-
fail-fast: true
117-
matrix:
118-
category:
119-
- test-upstream-requirements-py27
120-
steps:
121-
- uses: actions/checkout@v2
122-
- uses: actions/setup-python@v1
123-
with:
124-
python-version: 2.7
125-
- run: |
126-
python -m pip install --upgrade pip
127-
pip install --upgrade -r ci-requirements.txt
128-
- name: run test
129-
env:
130-
TOXENV: ${{ matrix.category }}
131-
run: tox -- -vv

‎codebuild/python2.7.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎codebuild/python3.5.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎codebuild/python3.6.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎tox.ini

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[tox]
22
envlist =
3-
py{27,35,36,37,38}-{local,integ,ddb,examples}-fast,
3+
py{37,38}-{local,integ,ddb,examples}-fast,
44
nocmk, sourcebuildcheck,
55
docs, bandit, doc8, readme,
66
flake8{,-tests,-examples}, pylint{,-tests,-examples},
77
vulture,
8-
test-upstream-requirements-py{2,3}7
8+
test-upstream-requirements-py{3}7
99

1010
# Additional environments:
1111
#
@@ -106,15 +106,6 @@ recreate = True
106106
deps =
107107
commands = {toxinidir}/test/freeze-upstream-requirements.sh
108108

109-
# Freeze for Python 2.7
110-
[testenv:freeze-upstream-requirements-py27]
111-
basepython = python2.7
112-
sitepackages = {[testenv:freeze-upstream-requirements-base]sitepackages}
113-
skip_install = {[testenv:freeze-upstream-requirements-base]skip_install}
114-
recreate = {[testenv:freeze-upstream-requirements-base]recreate}
115-
deps = {[testenv:freeze-upstream-requirements-base]deps}
116-
commands = {[testenv:freeze-upstream-requirements-base]commands} test/upstream-requirements-py27.txt
117-
118109
# Freeze for Python 3.7
119110
[testenv:freeze-upstream-requirements-py37]
120111
basepython = python3.7
@@ -131,15 +122,6 @@ recreate = True
131122
passenv =
132123
commands = {[testenv:base-command]commands} -m "local and not slow and not veryslow and not nope"
133124

134-
# Test frozen upstream requirements for Python 2.7
135-
[testenv:test-upstream-requirements-py27]
136-
basepython = python2.7
137-
passenv =
138-
deps = -rtest/upstream-requirements-py27.txt
139-
sitepackages = {[testenv:test-upstream-requirements-base]sitepackages}
140-
recreate = {[testenv:test-upstream-requirements-base]recreate}
141-
commands = {[testenv:test-upstream-requirements-base]commands}
142-
143125
# Test frozen upstream requirements for Python 3.7
144126
[testenv:test-upstream-requirements-py37]
145127
basepython = python3.7
@@ -190,17 +172,6 @@ commands =
190172
{posargs}
191173
{[testenv:mypy-coverage]commands}
192174

193-
[testenv:mypy-py2]
194-
basepython = python2.7
195-
deps = {[testenv:mypy-common]deps}
196-
commands =
197-
python -m mypy \
198-
--py2 \
199-
--linecoverage-report build \
200-
src/dynamodb_encryption_sdk/ \
201-
{posargs}
202-
{[testenv:mypy-coverage]commands}
203-
204175
# Linters
205176
[testenv:flake8]
206177
basepython = python3

0 commit comments

Comments
 (0)
Please sign in to comment.