diff --git a/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/__init__.py b/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/__init__.py index 878a7da67c..8f2f8d2793 100644 --- a/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/__init__.py +++ b/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/__init__.py @@ -37,7 +37,7 @@ def get_tox_envs(tox_ini_path: Path) -> list: return core_config_set.load("env_list") -def get_test_jobs_data(tox_envs: list, operating_systems: list) -> list: +def get_test_job_datas(tox_envs: list, operating_systems: list) -> list: os_alias = { "ubuntu-latest": "Ubuntu", @@ -53,7 +53,7 @@ def get_test_jobs_data(tox_envs: list, operating_systems: list) -> list: "py312": "3.12", } - test_jobs_data = [] + test_job_datas = [] tox_test_env_regex = re_compile( r"(?Ppy\w+)-test-" @@ -83,7 +83,7 @@ def get_test_jobs_data(tox_envs: list, operating_systems: list) -> list: else: test_requirements = f"-{test_requirements} " - test_jobs_data.append( + test_job_datas.append( { "name": f"{tox_env}_{operating_system}", "ui_name": ( @@ -99,12 +99,12 @@ def get_test_jobs_data(tox_envs: list, operating_systems: list) -> list: ) - return test_jobs_data + return test_job_datas -def get_lint_jobs_data(tox_envs: list) -> list: +def get_lint_job_datas(tox_envs: list) -> list: - lint_jobs_data = [] + lint_job_datas = [] tox_lint_env_regex = re_compile(r"lint-(?P[-\w]+)") @@ -117,7 +117,7 @@ def get_lint_jobs_data(tox_envs: list) -> list: tox_env = tox_lint_env_match.string - lint_jobs_data.append( + lint_job_datas.append( { "name": f"{tox_env}", "ui_name": f"{tox_lint_env_match.groupdict()['name']}", @@ -126,12 +126,12 @@ def get_lint_jobs_data(tox_envs: list) -> list: ) - return lint_jobs_data + return lint_job_datas -def get_contrib_jobs_data(tox_envs: list) -> list: +def get_contrib_job_datas(tox_envs: list) -> list: - contrib_jobs_data = [] + contrib_job_datas = [] tox_contrib_env_regex = re_compile( r"py38-test-(?P[-\w]+\w)-?(?P\d+)?" @@ -156,7 +156,7 @@ def get_contrib_jobs_data(tox_envs: list) -> list: else: contrib_requirements = f"-{contrib_requirements} " - contrib_jobs_data.append( + contrib_job_datas.append( { "ui_name": ( f"{groups['name']}" @@ -167,7 +167,35 @@ def get_contrib_jobs_data(tox_envs: list) -> list: ) - return contrib_jobs_data + return contrib_job_datas + + +def _generate_workflow( + job_datas: list, name: str, workflow_directory_path: Path +): + + # Github seems to limit the amount of jobs in a workflow file, that is why + # they are split in groups of 250 per workflow file. + for file_number, job_datas in enumerate( + [ + job_datas[index:index + 250] + for index in range(0, len(job_datas), 250) + ] + ): + + with open( + workflow_directory_path.joinpath(f"{name}_{file_number}.yml"), + "w" + ) as test_yml_file: + + test_yml_file.write( + Environment( + loader=FileSystemLoader(Path(__file__).parent) + ).get_template(f"{name}.yml.j2").render( + job_datas=job_datas, file_number=file_number + ) + ) + test_yml_file.write("\n") def generate_test_workflow( @@ -176,33 +204,11 @@ def generate_test_workflow( *operating_systems ) -> None: - jobs = get_test_jobs_data(get_tox_envs(tox_ini_path), operating_systems) - - with ( - open(workflow_directory_path.joinpath("test_0.yml"), "w") as - test_yml_file - ): - test_yml_file.write( - Environment( - loader=FileSystemLoader(Path(__file__).parent) - ).get_template("test.yml.j2").render( - jobs=jobs[:250], file_number=0 - ) - ) - test_yml_file.write("\n") - - with ( - open(workflow_directory_path.joinpath("test_1.yml"), "w") as - test_yml_file - ): - test_yml_file.write( - Environment( - loader=FileSystemLoader(Path(__file__).parent) - ).get_template("test.yml.j2").render( - jobs=jobs[250:], file_number=1 - ) - ) - test_yml_file.write("\n") + _generate_workflow( + get_test_job_datas(get_tox_envs(tox_ini_path), operating_systems), + "test", + workflow_directory_path + ) def generate_lint_workflow( @@ -210,35 +216,21 @@ def generate_lint_workflow( workflow_directory_path: Path, ) -> None: - with ( - open(workflow_directory_path.joinpath("lint.yml"), "w") as - lint_yml_file - ): - lint_yml_file.write( - Environment( - loader=FileSystemLoader(Path(__file__).parent) - ).get_template("lint.yml.j2").render( - jobs=get_lint_jobs_data(get_tox_envs(tox_ini_path)) - ) - ) - lint_yml_file.write("\n") + _generate_workflow( + get_lint_job_datas(get_tox_envs(tox_ini_path)), + "lint", + workflow_directory_path + ) def generate_contrib_workflow( workflow_directory_path: Path, ) -> None: - with ( - open(workflow_directory_path.joinpath("contrib.yml"), "w") as - contrib_yml_file - ): - contrib_yml_file.write( - Environment( - loader=FileSystemLoader(Path(__file__).parent) - ).get_template("contrib.yml.j2").render( - jobs=get_contrib_jobs_data( - get_tox_envs(Path(__file__).parent.joinpath("tox.ini")) - ) - ) - ) - contrib_yml_file.write("\n") + _generate_workflow( + get_contrib_job_datas( + get_tox_envs(Path(__file__).parent.joinpath("tox.ini")) + ), + "contrib", + workflow_directory_path + ) diff --git a/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/contrib.yml.j2 b/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/contrib.yml.j2 index 442d2e115b..e3fadbc469 100644 --- a/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/contrib.yml.j2 +++ b/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/contrib.yml.j2 @@ -14,10 +14,10 @@ env: PIP_EXISTS_ACTION: w jobs: - {%- for job in jobs %} + {%- for job_data in job_datas %} - {{ job.tox_env }}: - name: {{ job.ui_name }} + {{ job_data.tox_env }}: + name: {{ job_data.ui_name }} runs-on: ubuntu-latest steps: - name: Checkout contrib repo @ SHA - ${% raw %}{{ env.CONTRIB_REPO_SHA }}{% endraw %} @@ -42,5 +42,5 @@ jobs: run: pip install tox - name: Run tests - run: tox -e {{ job.tox_env }} -- -ra + run: tox -e {{ job_data.tox_env }} -- -ra {%- endfor %} diff --git a/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/lint.yml.j2 b/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/lint.yml.j2 index 150b78f0dd..98e2c151f0 100644 --- a/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/lint.yml.j2 +++ b/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/lint.yml.j2 @@ -12,10 +12,10 @@ env: PIP_EXISTS_ACTION: w jobs: - {%- for job in jobs %} + {%- for job_data in job_datas %} - {{ job.name }}: - name: {{ job.ui_name }} + {{ job_data.name }}: + name: {{ job_data.ui_name }} runs-on: ubuntu-latest steps: - name: Checkout repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %} @@ -30,5 +30,5 @@ jobs: run: pip install tox - name: Run tests - run: tox -e {{ job.tox_env }} + run: tox -e {{ job_data.tox_env }} {%- endfor %} diff --git a/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/test.yml.j2 b/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/test.yml.j2 index 6625eca976..2fe0c6e104 100644 --- a/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/test.yml.j2 +++ b/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/test.yml.j2 @@ -12,28 +12,28 @@ env: PIP_EXISTS_ACTION: w jobs: - {%- for job in jobs %} + {%- for job_data in job_datas %} - {{ job.name }}: - name: {{ job.ui_name }} - runs-on: {{ job.os }} + {{ job_data.name }}: + name: {{ job_data.ui_name }} + runs-on: {{ job_data.os }} steps: - name: Checkout repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %} uses: actions/checkout@v4 - - name: Set up Python {{ job.python_version }} + - name: Set up Python {{ job_data.python_version }} uses: actions/setup-python@v5 with: - python-version: "{{ job.python_version }}" + python-version: "{{ job_data.python_version }}" - name: Install tox run: pip install tox - {%- if job.os == "windows-latest" %} + {%- if job_data.os == "windows-latest" %} - name: Configure git to support long filenames run: git config --system core.longpaths true {%- endif %} - name: Run tests - run: tox -e {{ job.tox_env }} -- -ra + run: tox -e {{ job_data.tox_env }} -- -ra {%- endfor %} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint_0.yml similarity index 68% rename from .github/workflows/lint.yml rename to .github/workflows/lint_0.yml index e8fbf3a2f5..2f89ae3ee6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint_0.yml @@ -1,7 +1,7 @@ # Do not edit this file. # This file is generated automatically by executing tox -e generate_workflows -name: Lint +name: Test 0 on: push: @@ -15,1044 +15,1044 @@ jobs: lint-resource-detector-container: name: resource-detector-container - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-resource-detector-container + run: tox -e lint-resource-detector-container -- -ra lint-resource-detector-azure: name: resource-detector-azure - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-resource-detector-azure + run: tox -e lint-resource-detector-azure -- -ra lint-sdk-extension-aws: name: sdk-extension-aws - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-sdk-extension-aws + run: tox -e lint-sdk-extension-aws -- -ra lint-distro: name: distro - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-distro + run: tox -e lint-distro -- -ra lint-opentelemetry-instrumentation: name: opentelemetry-instrumentation - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-opentelemetry-instrumentation + run: tox -e lint-opentelemetry-instrumentation -- -ra lint-instrumentation-aiohttp-client: name: instrumentation-aiohttp-client - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-aiohttp-client + run: tox -e lint-instrumentation-aiohttp-client -- -ra lint-instrumentation-aiohttp-server: name: instrumentation-aiohttp-server - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-aiohttp-server + run: tox -e lint-instrumentation-aiohttp-server -- -ra lint-instrumentation-aiopg: name: instrumentation-aiopg - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-aiopg + run: tox -e lint-instrumentation-aiopg -- -ra lint-instrumentation-aws-lambda: name: instrumentation-aws-lambda - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-aws-lambda + run: tox -e lint-instrumentation-aws-lambda -- -ra lint-instrumentation-botocore: name: instrumentation-botocore - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-botocore + run: tox -e lint-instrumentation-botocore -- -ra lint-instrumentation-boto3sqs: name: instrumentation-boto3sqs - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-boto3sqs + run: tox -e lint-instrumentation-boto3sqs -- -ra lint-instrumentation-django: name: instrumentation-django - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-django + run: tox -e lint-instrumentation-django -- -ra lint-instrumentation-dbapi: name: instrumentation-dbapi - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-dbapi + run: tox -e lint-instrumentation-dbapi -- -ra lint-instrumentation-boto: name: instrumentation-boto - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-boto + run: tox -e lint-instrumentation-boto -- -ra lint-instrumentation-elasticsearch: name: instrumentation-elasticsearch - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-elasticsearch + run: tox -e lint-instrumentation-elasticsearch -- -ra lint-instrumentation-falcon: name: instrumentation-falcon - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-falcon + run: tox -e lint-instrumentation-falcon -- -ra lint-instrumentation-fastapi: name: instrumentation-fastapi - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-fastapi + run: tox -e lint-instrumentation-fastapi -- -ra lint-instrumentation-flask: name: instrumentation-flask - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-flask + run: tox -e lint-instrumentation-flask -- -ra lint-instrumentation-urllib: name: instrumentation-urllib - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-urllib + run: tox -e lint-instrumentation-urllib -- -ra lint-instrumentation-urllib3: name: instrumentation-urllib3 - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-urllib3 + run: tox -e lint-instrumentation-urllib3 -- -ra lint-instrumentation-requests: name: instrumentation-requests - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-requests + run: tox -e lint-instrumentation-requests -- -ra lint-instrumentation-starlette: name: instrumentation-starlette - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-starlette + run: tox -e lint-instrumentation-starlette -- -ra lint-instrumentation-jinja2: name: instrumentation-jinja2 - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-jinja2 + run: tox -e lint-instrumentation-jinja2 -- -ra lint-instrumentation-logging: name: instrumentation-logging - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-logging + run: tox -e lint-instrumentation-logging -- -ra lint-exporter-richconsole: name: exporter-richconsole - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-exporter-richconsole + run: tox -e lint-exporter-richconsole -- -ra lint-exporter-prometheus-remote-write: name: exporter-prometheus-remote-write - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-exporter-prometheus-remote-write + run: tox -e lint-exporter-prometheus-remote-write -- -ra lint-instrumentation-mysql: name: instrumentation-mysql - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-mysql + run: tox -e lint-instrumentation-mysql -- -ra lint-instrumentation-mysqlclient: name: instrumentation-mysqlclient - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-mysqlclient + run: tox -e lint-instrumentation-mysqlclient -- -ra lint-instrumentation-psycopg2: name: instrumentation-psycopg2 - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-psycopg2 + run: tox -e lint-instrumentation-psycopg2 -- -ra lint-instrumentation-psycopg: name: instrumentation-psycopg - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-psycopg + run: tox -e lint-instrumentation-psycopg -- -ra lint-instrumentation-pymemcache: name: instrumentation-pymemcache - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-pymemcache + run: tox -e lint-instrumentation-pymemcache -- -ra lint-instrumentation-pymongo: name: instrumentation-pymongo - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-pymongo + run: tox -e lint-instrumentation-pymongo -- -ra lint-instrumentation-pymysql: name: instrumentation-pymysql - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-pymysql + run: tox -e lint-instrumentation-pymysql -- -ra lint-instrumentation-pyramid: name: instrumentation-pyramid - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-pyramid + run: tox -e lint-instrumentation-pyramid -- -ra lint-instrumentation-asgi: name: instrumentation-asgi - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-asgi + run: tox -e lint-instrumentation-asgi -- -ra lint-instrumentation-asyncpg: name: instrumentation-asyncpg - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-asyncpg + run: tox -e lint-instrumentation-asyncpg -- -ra lint-instrumentation-sqlite3: name: instrumentation-sqlite3 - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-sqlite3 + run: tox -e lint-instrumentation-sqlite3 -- -ra lint-instrumentation-wsgi: name: instrumentation-wsgi - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-wsgi + run: tox -e lint-instrumentation-wsgi -- -ra lint-instrumentation-grpc: name: instrumentation-grpc - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-grpc + run: tox -e lint-instrumentation-grpc -- -ra lint-instrumentation-sqlalchemy: name: instrumentation-sqlalchemy - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-sqlalchemy + run: tox -e lint-instrumentation-sqlalchemy -- -ra lint-instrumentation-redis: name: instrumentation-redis - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-redis + run: tox -e lint-instrumentation-redis -- -ra lint-instrumentation-remoulade: name: instrumentation-remoulade - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-remoulade + run: tox -e lint-instrumentation-remoulade -- -ra lint-instrumentation-celery: name: instrumentation-celery - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-celery + run: tox -e lint-instrumentation-celery -- -ra lint-instrumentation-system-metrics: name: instrumentation-system-metrics - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-system-metrics + run: tox -e lint-instrumentation-system-metrics -- -ra lint-instrumentation-threading: name: instrumentation-threading - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-threading + run: tox -e lint-instrumentation-threading -- -ra lint-instrumentation-tornado: name: instrumentation-tornado - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-tornado + run: tox -e lint-instrumentation-tornado -- -ra lint-instrumentation-tortoiseorm: name: instrumentation-tortoiseorm - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-tortoiseorm + run: tox -e lint-instrumentation-tortoiseorm -- -ra lint-instrumentation-httpx: name: instrumentation-httpx - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-httpx + run: tox -e lint-instrumentation-httpx -- -ra lint-util-http: name: util-http - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-util-http + run: tox -e lint-util-http -- -ra lint-propagator-aws-xray: name: propagator-aws-xray - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-propagator-aws-xray + run: tox -e lint-propagator-aws-xray -- -ra lint-propagator-ot-trace: name: propagator-ot-trace - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-propagator-ot-trace + run: tox -e lint-propagator-ot-trace -- -ra lint-instrumentation-sio-pika: name: instrumentation-sio-pika - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-sio-pika + run: tox -e lint-instrumentation-sio-pika -- -ra lint-instrumentation-aio-pika: name: instrumentation-aio-pika - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-aio-pika + run: tox -e lint-instrumentation-aio-pika -- -ra lint-instrumentation-kafka-python: name: instrumentation-kafka-python - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-kafka-python + run: tox -e lint-instrumentation-kafka-python -- -ra lint-instrumentation-confluent-kafka: name: instrumentation-confluent-kafka - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-confluent-kafka + run: tox -e lint-instrumentation-confluent-kafka -- -ra lint-instrumentation-asyncio: name: instrumentation-asyncio - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-asyncio + run: tox -e lint-instrumentation-asyncio -- -ra lint-instrumentation-cassandra: name: instrumentation-cassandra - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-instrumentation-cassandra + run: tox -e lint-instrumentation-cassandra -- -ra lint-processor-baggage: name: processor-baggage - runs-on: ubuntu-latest + runs-on: steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "" - name: Install tox run: pip install tox - name: Run tests - run: tox -e lint-processor-baggage + run: tox -e lint-processor-baggage -- -ra