Only run Python3.6 contrib tests
@@ -111,19 +111,19 @@ jobs:
key: v2-tox-cache-${{ matrix.tox-environment }}-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}-core
- name: run tox
run: tox -e ${{ matrix.tox-environment }}
+
+ # Contrib unit test suite in order to ensure changes in core do not break anything in contrib.
+ # We only run contrib unit tests on the oldest supported Python version (3.6) as running the same tests
+ # on all versions is somewhat redundant.
contrib-build:
env:
# We use these variables to convert between tox and GHA version literals
py36: 3.6
- py37: 3.7
- py38: 3.8
- py39: 3.9
- pypy3: pypy3
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
matrix:
- python-version: [ py36, py37, py38, py39, pypy3 ]
+ python-version: [ py36 ]
package: ["instrumentation", "exporter"]
os: [ ubuntu-20.04]
steps:
@@ -154,38 +154,3 @@ jobs:
key: v2-tox-cache-${{ matrix.python-version }}-${{ matrix.package }}-${{ matrix.os }}-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}-contrib
- name: run tox
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }}
- contrib-misc:
- strategy:
- fail-fast: false
- matrix:
- tox-environment: [ "docker-tests"]
- name: ${{ matrix.tox-environment }}
- runs-on: ubuntu-20.04
- steps:
- - name: Checkout Contrib Repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
- uses: actions/checkout@v2
- with:
- repository: open-telemetry/opentelemetry-python-contrib
- ref: ${{ env.CONTRIB_REPO_SHA }}
- - name: Checkout Core Repo @ SHA ${{ github.sha }}
- uses: actions/checkout@v2
- with:
- repository: open-telemetry/opentelemetry-python
- path: opentelemetry-python-core
- - name: Set up Python
- uses: actions/setup-python@v2
- with:
- python-version: 3.9
- architecture: 'x64'
- - name: Install tox
- run: pip install -U tox
- - name: Cache tox environment
- # Preserves .tox directory between runs for faster installs
- uses: actions/cache@v2
- with:
- path: |
- .tox
- ~/.cache/pip
- key: v2-tox-cache-${{ matrix.tox-environment }}-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}-contrib
- - name: run tox
- run: tox -e ${{ matrix.tox-environment }}
