@@ -111,19 +111,19 @@ jobs:
111
111
key : v2-tox-cache-${{ matrix.tox-environment }}-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}-core
112
112
- name : run tox
113
113
run : tox -e ${{ matrix.tox-environment }}
114
+
115
+ # Contrib unit test suite in order to ensure changes in core do not break anything in contrib.
116
+ # We only run contrib unit tests on the oldest supported Python version (3.6) as running the same tests
117
+ # on all versions is somewhat redundant.
114
118
contrib-build :
115
119
env :
116
120
# We use these variables to convert between tox and GHA version literals
117
121
py36 : 3.6
118
- py37 : 3.7
119
- py38 : 3.8
120
- py39 : 3.9
121
- pypy3 : pypy3
122
122
runs-on : ${{ matrix.os }}
123
123
strategy :
124
124
fail-fast : false # ensures the entire test matrix is run, even if one permutation fails
125
125
matrix :
126
- python-version : [ py36, py37, py38, py39, pypy3 ]
126
+ python-version : [ py36 ]
127
127
package : ["instrumentation", "exporter"]
128
128
os : [ ubuntu-20.04]
129
129
steps :
@@ -154,38 +154,3 @@ jobs:
154
154
key : v2-tox-cache-${{ matrix.python-version }}-${{ matrix.package }}-${{ matrix.os }}-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}-contrib
155
155
- name : run tox
156
156
run : tox -f ${{ matrix.python-version }}-${{ matrix.package }}
157
- contrib-misc :
158
- strategy :
159
- fail-fast : false
160
- matrix :
161
- tox-environment : [ "docker-tests"]
162
- name : ${{ matrix.tox-environment }}
163
- runs-on : ubuntu-20.04
164
- steps :
165
- - name : Checkout Contrib Repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
166
- uses : actions/checkout@v2
167
- with :
168
- repository : open-telemetry/opentelemetry-python-contrib
169
- ref : ${{ env.CONTRIB_REPO_SHA }}
170
- - name : Checkout Core Repo @ SHA ${{ github.sha }}
171
- uses : actions/checkout@v2
172
- with :
173
- repository : open-telemetry/opentelemetry-python
174
- path : opentelemetry-python-core
175
- - name : Set up Python
176
- uses : actions/setup-python@v2
177
- with :
178
- python-version : 3.9
179
- architecture : ' x64'
180
- - name : Install tox
181
- run : pip install -U tox
182
- - name : Cache tox environment
183
- # Preserves .tox directory between runs for faster installs
184
- uses : actions/cache@v2
185
- with :
186
- path : |
187
- .tox
188
- ~/.cache/pip
189
- key : v2-tox-cache-${{ matrix.tox-environment }}-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}-contrib
190
- - name : run tox
191
- run : tox -e ${{ matrix.tox-environment }}
0 commit comments