Skip to content

Commit b1d6c90

Browse files
author
alrex
authored
add python 3.9 tests (#466)
1 parent 78cd776 commit b1d6c90

File tree

4 files changed

+43
-42
lines changed

4 files changed

+43
-42
lines changed

.github/workflows/test.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ jobs:
1515
py36: 3.6
1616
py37: 3.7
1717
py38: 3.8
18+
py39: 3.9
1819
pypy3: pypy3
1920
RUN_MATRIX_COMBINATION: ${{ matrix.python-version }}-${{ matrix.package }}-${{ matrix.os }}
2021
runs-on: ${{ matrix.os }}
2122
strategy:
2223
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
2324
matrix:
24-
python-version: [ py36, py37, py38, pypy3 ]
25+
python-version: [ py36, py37, py38, py39, pypy3 ]
2526
package: ["instrumentation", "exporter", "sdkextension", "propagator"]
2627
os: [ ubuntu-latest ]
2728
steps:
@@ -87,10 +88,10 @@ jobs:
8788
repository: open-telemetry/opentelemetry-python
8889
ref: ${{ env.CORE_REPO_SHA }}
8990
path: opentelemetry-python-core
90-
- name: Set up Python 3.8
91+
- name: Set up Python 3.9
9192
uses: actions/setup-python@v2
9293
with:
93-
python-version: 3.8
94+
python-version: 3.9
9495
- name: Install tox
9596
run: pip install -U tox
9697
- name: Cache tox environment

dev-requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ isort~=5.6
44
black>=19.3b0,==19.*
55
httpretty~=1.0
66
mypy==0.790
7-
sphinx~=2.1
7+
sphinx
88
sphinx-rtd-theme~=0.4
9-
sphinx-autodoc-typehints~=1.10.2
9+
sphinx-autodoc-typehints
1010
pytest!=5.2.3
1111
pytest-cov>=2.8
1212
readme-renderer~=24.0

docs-requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sphinx~=2.4
1+
sphinx
22
sphinx-rtd-theme~=0.4
33
sphinx-autodoc-typehints
44

tox.ini

+36-36
Original file line numberDiff line numberDiff line change
@@ -10,146 +10,146 @@ envlist =
1010
pypy3-test-instrumentation-base
1111

1212
; opentelemetry-sdk-extension-aws
13-
py3{6,7,8}-test-sdkextension-aws
13+
py3{6,7,8,9}-test-sdkextension-aws
1414
pypy3-test-sdkextension-aws
1515

1616
; opentelemetry-instrumentation-aiohttp-client
17-
py3{6,7,8}-test-instrumentation-aiohttp-client
17+
py3{6,7,8,9}-test-instrumentation-aiohttp-client
1818
pypy3-test-instrumentation-aiohttp-client
1919

2020
; opentelemetry-instrumentation-aiopg
21-
py3{6,7,8}-test-instrumentation-aiopg
21+
py3{6,7,8,9}-test-instrumentation-aiopg
2222
; instrumentation-aiopg intentionally excluded from pypy3
2323

2424
; opentelemetry-instrumentation-botocore
25-
py3{6,7,8}-test-instrumentation-botocore
25+
py3{6,7,8,9}-test-instrumentation-botocore
2626
pypy3-test-instrumentation-botocore
2727

2828
; opentelemetry-instrumentation-django
29-
py3{6,7,8}-test-instrumentation-django
29+
py3{6,7,8,9}-test-instrumentation-django
3030
pypy3-test-instrumentation-django
3131

3232
; opentelemetry-instrumentation-dbapi
33-
py3{6,7,8}-test-instrumentation-dbapi
33+
py3{6,7,8,9}-test-instrumentation-dbapi
3434
pypy3-test-instrumentation-dbapi
3535

3636
; opentelemetry-instrumentation-boto
37-
py3{6,7,8}-test-instrumentation-boto
37+
py3{6,7,8,9}-test-instrumentation-boto
3838
pypy3-test-instrumentation-boto
3939

4040
; opentelemetry-instrumentation-elasticsearch
41-
py3{6,7,8}-test-instrumentation-elasticsearch{2,5,6,7}
41+
py3{6,7,8,9}-test-instrumentation-elasticsearch{2,5,6,7}
4242
pypy3-test-instrumentation-elasticsearch{2,5,6,7}
4343

4444
; opentelemetry-instrumentation-falcon
45-
py3{4,5,6,7,8}-test-instrumentation-falcon
45+
py3{4,5,6,7,8,9}-test-instrumentation-falcon
4646
pypy3-test-instrumentation-falcon
4747

4848
; opentelemetry-instrumentation-fastapi
4949
; fastapi only supports 3.6 and above.
50-
py3{6,7,8}-test-instrumentation-fastapi
50+
py3{6,7,8,9}-test-instrumentation-fastapi
5151
pypy3-test-instrumentation-fastapi
5252

5353
; opentelemetry-instrumentation-flask
54-
py3{6,7,8}-test-instrumentation-flask
54+
py3{6,7,8,9}-test-instrumentation-flask
5555
pypy3-test-instrumentation-flask
5656

5757
; opentelemetry-instrumentation-urllib
58-
py3{6,7,8}-test-instrumentation-urllib
58+
py3{6,7,8,9}-test-instrumentation-urllib
5959
pypy3-test-instrumentation-urllib
6060

6161
; opentelemetry-instrumentation-urllib3
62-
py3{6,7,8}-test-instrumentation-urllib3
62+
py3{6,7,8,9}-test-instrumentation-urllib3
6363
pypy3-test-instrumentation-urllib3
6464

6565
; opentelemetry-instrumentation-requests
66-
py3{6,7,8}-test-instrumentation-requests
66+
py3{6,7,8,9}-test-instrumentation-requests
6767
pypy3-test-instrumentation-requests
6868

6969
; opentelemetry-instrumentation-starlette.
7070
; starlette only supports 3.6 and above.
71-
py3{6,7,8}-test-instrumentation-starlette
71+
py3{6,7,8,9}-test-instrumentation-starlette
7272
pypy3-test-instrumentation-starlette
7373

7474
; opentelemetry-instrumentation-jinja2
75-
py3{6,7,8}-test-instrumentation-jinja2
75+
py3{6,7,8,9}-test-instrumentation-jinja2
7676
pypy3-test-instrumentation-jinja2
7777

7878
; opentelemetry-instrumentation-logging
79-
py3{6,7,8}-test-instrumentation-logging
79+
py3{6,7,8,9}-test-instrumentation-logging
8080
pypy3-test-instrumentation-logging
8181

8282
; opentelemetry-exporter-datadog
83-
py3{6,7,8}-test-exporter-datadog
83+
py3{6,7,8,9}-test-exporter-datadog
8484

8585
; opentelemetry-instrumentation-mysql
86-
py3{6,7,8}-test-instrumentation-mysql
86+
py3{6,7,8,9}-test-instrumentation-mysql
8787
pypy3-test-instrumentation-mysql
8888

8989
; opentelemetry-instrumentation-psycopg2
90-
py3{6,7,8}-test-instrumentation-psycopg2
90+
py3{6,7,8,9}-test-instrumentation-psycopg2
9191
; ext-psycopg2 intentionally excluded from pypy3
9292

9393
; opentelemetry-instrumentation-pymemcache
94-
py3{6,7,8}-test-instrumentation-pymemcache
94+
py3{6,7,8,9}-test-instrumentation-pymemcache
9595
pypy3-test-instrumentation-pymemcache
9696

9797
; opentelemetry-instrumentation-pymongo
98-
py3{6,7,8}-test-instrumentation-pymongo
98+
py3{6,7,8,9}-test-instrumentation-pymongo
9999
pypy3-test-instrumentation-pymongo
100100

101101
; opentelemetry-instrumentation-pymysql
102-
py3{6,7,8}-test-instrumentation-pymysql
102+
py3{6,7,8,9}-test-instrumentation-pymysql
103103
pypy3-test-instrumentation-pymysql
104104

105105
; opentelemetry-instrumentation-pyramid
106-
py3{6,7,8}-test-instrumentation-pyramid
106+
py3{6,7,8,9}-test-instrumentation-pyramid
107107
pypy3-test-instrumentation-pyramid
108108

109109
; opentelemetry-instrumentation-asgi
110-
py3{6,7,8}-test-instrumentation-asgi
110+
py3{6,7,8,9}-test-instrumentation-asgi
111111
pypy3-test-instrumentation-asgi
112112

113113
; opentelemetry-instrumentation-asyncpg
114-
py3{6,7,8}-test-instrumentation-asyncpg
114+
py3{6,7,8,9}-test-instrumentation-asyncpg
115115
; ext-asyncpg intentionally excluded from pypy3
116116

117117
; opentelemetry-instrumentation-sqlite3
118-
py3{6,7,8}-test-instrumentation-sqlite3
118+
py3{6,7,8,9}-test-instrumentation-sqlite3
119119
pypy3-test-instrumentation-sqlite3
120120

121121
; opentelemetry-instrumentation-wsgi
122-
py3{6,7,8}-test-instrumentation-wsgi
122+
py3{6,7,8,9}-test-instrumentation-wsgi
123123
pypy3-test-instrumentation-wsgi
124124

125125
; opentelemetry-instrumentation-grpc
126-
py3{6,7,8}-test-instrumentation-grpc
126+
py3{6,7,8,9}-test-instrumentation-grpc
127127

128128
; opentelemetry-instrumentation-sqlalchemy
129-
py3{6,7,8}-test-instrumentation-sqlalchemy
129+
py3{6,7,8,9}-test-instrumentation-sqlalchemy
130130
pypy3-test-instrumentation-sqlalchemy
131131

132132
; opentelemetry-instrumentation-redis
133-
py3{6,7,8}-test-instrumentation-redis
133+
py3{6,7,8,9}-test-instrumentation-redis
134134
pypy3-test-instrumentation-redis
135135

136136
; opentelemetry-instrumentation-celery
137-
py3{6,7,8}-test-instrumentation-celery
137+
py3{6,7,8,9}-test-instrumentation-celery
138138
pypy3-test-instrumentation-celery
139139

140140
; opentelemetry-instrumentation-sklearn
141141
py3{6,7,8}-test-instrumentation-sklearn
142142

143143
; opentelemetry-instrumentation-tornado
144-
py3{6,7,8}-test-instrumentation-tornado
144+
py3{6,7,8,9}-test-instrumentation-tornado
145145
pypy3-test-instrumentation-tornado
146146

147147
; opentelemetry-util-http
148-
py3{6,7,8}-test-util-http
148+
py3{6,7,8,9}-test-util-http
149149
pypy3-test-util-http
150150

151151
; opentelemetry-propagator-ot-trace
152-
py3{6,7,8}-test-propagator-ot-trace
152+
py3{6,7,8,9}-test-propagator-ot-trace
153153
pypy3-test-propagator-ot-trace
154154

155155
lint
@@ -217,7 +217,7 @@ changedir =
217217

218218
commands_pre =
219219
; Install without -e to test the actual installation
220-
py3{6,7,8}: python -m pip install -U pip setuptools wheel
220+
py3{6,7,8,9}: python -m pip install -U pip setuptools wheel
221221
; Install common packages for all the tests. These are not needed in all the
222222
; cases but it saves a lot of boilerplate in this file.
223223
test: pip install {toxinidir}/opentelemetry-python-core/opentelemetry-api

0 commit comments

Comments
 (0)