-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
147 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: Contrib Repo Tests | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'release/*' | ||
pull_request: | ||
env: | ||
CORE_REPO_SHA: 84c0e4f38d4fcdb8c13fd3988469fbb8cda28150 | ||
|
||
jobs: | ||
instrumentations-0: | ||
env: | ||
# We use these variables to convert between tox and GHA version literals | ||
py37: 3.7 | ||
py38: 3.8 | ||
py39: 3.9 | ||
py310: "3.10" | ||
py311: "3.11" | ||
pypy3: pypy-3.7 | ||
RUN_MATRIX_COMBINATION: ${{ matrix.python-version }}-${{ matrix.package }}-${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails | ||
matrix: | ||
python-version: [py37, py38, py39, py310, py311, pypy3] | ||
package: | ||
# Do not add more instrumentations here, add them in instrumentations_1.yml. | ||
- "aiohttp-client" | ||
- "aiohttp-server" | ||
- "aiopg" | ||
- "aio-pika" | ||
- "asgi" | ||
- "asyncpg" | ||
- "aws-lambda" | ||
- "boto" | ||
- "boto3sqs" | ||
- "botocore" | ||
- "cassandra" | ||
- "celery" | ||
- "confluent-kafka" | ||
- "dbapi" | ||
- "django" | ||
- "elasticsearch" | ||
- "falcon" | ||
- "fastapi" | ||
- "flask" | ||
- "grpc" | ||
- "httpx" | ||
- "jinja2" | ||
- "kafka-python" | ||
- "logging" | ||
- "mysql" | ||
- "mysqlclient" | ||
- "pika" | ||
- "psycopg2" | ||
- "pymemcache" | ||
- "pymongo" | ||
- "pymysql" | ||
- "pyramid" | ||
- "redis" | ||
- "remoulade" | ||
- "requests" | ||
- "sklearn" | ||
- "sqlalchemy" | ||
- "sqlite3" | ||
- "starlette" | ||
- "system-metrics" | ||
- "tornado" | ||
- "tortoiseorm" | ||
os: [ubuntu-20.04] | ||
steps: | ||
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }} | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ env[matrix.python-version] }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env[matrix.python-version] }} | ||
- name: Install tox | ||
run: pip install tox==3.27.1 tox-factor | ||
- name: Cache tox environment | ||
# Preserves .tox directory between runs for faster installs | ||
uses: actions/cache@v1 | ||
with: | ||
path: | | ||
.tox | ||
~/.cache/pip | ||
key: v7-build-tox-cache-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('tox.ini', 'gen-requirements.txt', 'dev-requirements.txt') }} | ||
- name: run tox | ||
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }} -- -ra --benchmark-json=${{ env.RUN_MATRIX_COMBINATION }}-benchmark.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Contrib Repo Tests | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'release/*' | ||
pull_request: | ||
env: | ||
CORE_REPO_SHA: 84c0e4f38d4fcdb8c13fd3988469fbb8cda28150 | ||
|
||
jobs: | ||
instrumentations-1: | ||
env: | ||
# We use these variables to convert between tox and GHA version literals | ||
py37: 3.7 | ||
py38: 3.8 | ||
py39: 3.9 | ||
py310: "3.10" | ||
py311: "3.11" | ||
pypy3: pypy-3.7 | ||
RUN_MATRIX_COMBINATION: ${{ matrix.python-version }}-${{ matrix.package }}-${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails | ||
matrix: | ||
python-version: [py37, py38, py39, py310, py311, pypy3] | ||
package: | ||
- "urllib" | ||
- "urllib3" | ||
- "wsgi" | ||
- "distro" | ||
- "richconsole" | ||
- "prometheus-remote-write" | ||
- "sdkextension-aws" | ||
- "propagator-aws-xray" | ||
- "propagator-ot-trace" | ||
- "resource-detector-container" | ||
os: [ubuntu-20.04] | ||
steps: | ||
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }} | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ env[matrix.python-version] }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env[matrix.python-version] }} | ||
- name: Install tox | ||
run: pip install tox==3.27.1 tox-factor | ||
- name: Cache tox environment | ||
# Preserves .tox directory between runs for faster installs | ||
uses: actions/cache@v1 | ||
with: | ||
path: | | ||
.tox | ||
~/.cache/pip | ||
key: v7-build-tox-cache-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('tox.ini', 'gen-requirements.txt', 'dev-requirements.txt') }} | ||
- name: run tox | ||
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }} -- -ra --benchmark-json=${{ env.RUN_MATRIX_COMBINATION }}-benchmark.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters