Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 171569a

Browse files
authored
Only run Python3.6 contrib tests (open-telemetry#2192)
1 parent ade44b1 commit 171569a

File tree

1 file changed

+5
-40
lines changed

1 file changed

+5
-40
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,19 @@ jobs:
111111
key: v2-tox-cache-${{ matrix.tox-environment }}-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}-core
112112
- name: run tox
113113
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.
114118
contrib-build:
115119
env:
116120
# We use these variables to convert between tox and GHA version literals
117121
py36: 3.6
118-
py37: 3.7
119-
py38: 3.8
120-
py39: 3.9
121-
pypy3: pypy3
122122
runs-on: ${{ matrix.os }}
123123
strategy:
124124
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
125125
matrix:
126-
python-version: [ py36, py37, py38, py39, pypy3 ]
126+
python-version: [ py36 ]
127127
package: ["instrumentation", "exporter"]
128128
os: [ ubuntu-20.04]
129129
steps:
@@ -154,38 +154,3 @@ jobs:
154154
key: v2-tox-cache-${{ matrix.python-version }}-${{ matrix.package }}-${{ matrix.os }}-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}-contrib
155155
- name: run tox
156156
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

Comments
 (0)