|
| 1 | +name: Lint tests |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches-ignore: |
| 6 | + - 'release/*' |
| 7 | + pull_request: |
| 8 | +env: |
| 9 | + CORE_REPO_SHA: 955c92e91b5cd4bcfb43c39efcef086b040471d2 |
| 10 | + |
| 11 | +jobs: |
| 12 | + lint-3_11: |
| 13 | + strategy: |
| 14 | + fail-fast: false # ensures the entire test matrix is run, even if one permutation fails |
| 15 | + matrix: |
| 16 | + package: |
| 17 | + - "distro" |
| 18 | + - "exporter-prometheus-remote-write" |
| 19 | + - "exporter-richconsole" |
| 20 | + - "instrumentation-aio-pika" |
| 21 | + - "instrumentation-aiohttp-client" |
| 22 | + - "instrumentation-aiohttp-server" |
| 23 | + - "instrumentation-aiopg" |
| 24 | + - "instrumentation-asgi" |
| 25 | + - "instrumentation-asyncio" |
| 26 | + - "instrumentation-asyncpg" |
| 27 | + - "instrumentation-aws-lambda" |
| 28 | + - "instrumentation-boto" |
| 29 | + - "instrumentation-boto3sqs" |
| 30 | + - "instrumentation-botocore" |
| 31 | + - "instrumentation-cassandra" |
| 32 | + - "instrumentation-celery" |
| 33 | + - "instrumentation-confluent-kafka" |
| 34 | + - "instrumentation-dbapi" |
| 35 | + - "instrumentation-django" |
| 36 | + - "instrumentation-elasticsearch" |
| 37 | + - "instrumentation-falcon" |
| 38 | + - "instrumentation-fastapi" |
| 39 | + - "instrumentation-flask" |
| 40 | + - "instrumentation-grpc" |
| 41 | + - "instrumentation-httpx" |
| 42 | + - "instrumentation-jinja2" |
| 43 | + - "instrumentation-kafka-python" |
| 44 | + - "instrumentation-logging" |
| 45 | + - "instrumentation-mysql" |
| 46 | + - "instrumentation-mysqlclient" |
| 47 | + - "instrumentation-psycopg" |
| 48 | + - "instrumentation-psycopg2" |
| 49 | + - "instrumentation-pymemcache" |
| 50 | + - "instrumentation-pymongo" |
| 51 | + - "instrumentation-pymysql" |
| 52 | + - "instrumentation-pyramid" |
| 53 | + - "instrumentation-redis" |
| 54 | + - "instrumentation-remoulade" |
| 55 | + - "instrumentation-requests" |
| 56 | + - "instrumentation-sio-pika" |
| 57 | + - "instrumentation-sqlalchemy" |
| 58 | + - "instrumentation-sqlite3" |
| 59 | + - "instrumentation-starlette" |
| 60 | + - "instrumentation-system-metrics" |
| 61 | + - "instrumentation-threading" |
| 62 | + - "instrumentation-tornado" |
| 63 | + - "instrumentation-tortoiseorm" |
| 64 | + - "instrumentation-urllib" |
| 65 | + - "instrumentation-urllib3" |
| 66 | + - "instrumentation-wsgi" |
| 67 | + - "opentelemetry-instrumentation" |
| 68 | + - "processor-baggage" |
| 69 | + - "propagator-aws-xray" |
| 70 | + - "propagator-ot-trace" |
| 71 | + - "resource-detector-container" |
| 72 | + - "sdk-extension-aws" |
| 73 | + os: [ubuntu-20.04] |
| 74 | + runs-on: ubuntu-20.04 |
| 75 | + steps: |
| 76 | + - name: Checkout Contrib Repo @ SHA - ${{ github.sha }} |
| 77 | + uses: actions/checkout@v4 |
| 78 | + - name: Set up Python 3.11 |
| 79 | + uses: actions/setup-python@v5 |
| 80 | + with: |
| 81 | + python-version: 3.11 |
| 82 | + - name: Install tox |
| 83 | + run: pip install tox |
| 84 | + - name: Cache tox environment |
| 85 | + # Preserves .tox directory between runs for faster installs |
| 86 | + uses: actions/cache@v4 |
| 87 | + with: |
| 88 | + path: | |
| 89 | + .tox |
| 90 | + ~/.cache/pip |
| 91 | + key: v7-build-tox-cache-${{ matrix.package }}-${{ hashFiles('tox.ini', 'gen-requirements.txt', 'dev-requirements.txt') }} |
| 92 | + - name: run tox |
| 93 | + run: tox -e lint-${{ matrix.package }} |
| 94 | + |
| 95 | + lint-3_8: |
| 96 | + strategy: |
| 97 | + fail-fast: false # ensures the entire test matrix is run, even if one permutation fails |
| 98 | + matrix: |
| 99 | + package: |
| 100 | + - "instrumentation-sklearn" |
| 101 | + os: [ubuntu-20.04] |
| 102 | + runs-on: ubuntu-20.04 |
| 103 | + steps: |
| 104 | + - name: Checkout Contrib Repo @ SHA - ${{ github.sha }} |
| 105 | + uses: actions/checkout@v4 |
| 106 | + - name: Set up Python 3.8 |
| 107 | + uses: actions/setup-python@v5 |
| 108 | + with: |
| 109 | + python-version: 3.8 |
| 110 | + - name: Install tox |
| 111 | + run: pip install tox |
| 112 | + - name: Cache tox environment |
| 113 | + # Preserves .tox directory between runs for faster installs |
| 114 | + uses: actions/cache@v4 |
| 115 | + with: |
| 116 | + path: | |
| 117 | + .tox |
| 118 | + ~/.cache/pip |
| 119 | + key: v7-build-tox-cache-${{ matrix.package }}-${{ hashFiles('tox.ini', 'gen-requirements.txt', 'dev-requirements.txt') }} |
| 120 | + - name: run tox |
| 121 | + run: tox -e lint-${{ matrix.package }} |
0 commit comments