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