From 65e138e3b73f21c4d49b6c79b34afd6ada210297 Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Wed, 8 May 2024 12:38:56 -0500 Subject: [PATCH] IWER --- .github/workflows/lint.yml | 2 -- .github/workflows/lint_1.yml | 41 +++++++++++++++++++++++ .github/workflows/spellcheck_1.yml | 41 +++++++++++++++++++++++ .github/workflows/test_1.yml | 52 ++++++++++++++++++++++++++++++ 4 files changed, 134 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/lint_1.yml create mode 100644 .github/workflows/spellcheck_1.yml create mode 100644 .github/workflows/test_1.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 39afb3ee96..352b0da47b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -68,8 +68,6 @@ jobs: - "processor-baggage" - "propagator-aws-xray" - "propagator-ot-trace" - - "resource-detector-container" - - "sdk-extension-aws" os: [ubuntu-20.04] runs-on: ubuntu-20.04 steps: diff --git a/.github/workflows/lint_1.yml b/.github/workflows/lint_1.yml new file mode 100644 index 0000000000..aece61f2aa --- /dev/null +++ b/.github/workflows/lint_1.yml @@ -0,0 +1,41 @@ +name: Test 1 + +on: + push: + branches-ignore: + - 'release/*' + pull_request: +env: + CORE_REPO_SHA: 955c92e91b5cd4bcfb43c39efcef086b040471d2 + +jobs: + test-1: + env: + 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: + package: + - "resource/opentelemetry-resource-detector-container" + - "sdk-extension/opentelemetry-sdk-extension-aws" + os: [ubuntu-20.04] + steps: + - name: Checkout Contrib Repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + - name: Set up Python ${{ env[matrix.python-version] }} + 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-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('tox.ini', 'gen-requirements.txt', 'dev-requirements.txt') }} + - name: run tox + run: tox -c ${{ matrix.package }}/tox.ini lint diff --git a/.github/workflows/spellcheck_1.yml b/.github/workflows/spellcheck_1.yml new file mode 100644 index 0000000000..0ccf9419d2 --- /dev/null +++ b/.github/workflows/spellcheck_1.yml @@ -0,0 +1,41 @@ +name: Test 1 + +on: + push: + branches-ignore: + - 'release/*' + pull_request: +env: + CORE_REPO_SHA: 955c92e91b5cd4bcfb43c39efcef086b040471d2 + +jobs: + test-1: + env: + 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: + package: + - "resource/opentelemetry-resource-detector-container" + - "sdk-extension/opentelemetry-sdk-extension-aws" + os: [ubuntu-20.04] + steps: + - name: Checkout Contrib Repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + - name: Set up Python ${{ env[matrix.python-version] }} + 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-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('tox.ini', 'gen-requirements.txt', 'dev-requirements.txt') }} + - name: run tox + run: tox -c ${{ matrix.package }}/tox.ini spellcheck diff --git a/.github/workflows/test_1.yml b/.github/workflows/test_1.yml new file mode 100644 index 0000000000..5d85d8a586 --- /dev/null +++ b/.github/workflows/test_1.yml @@ -0,0 +1,52 @@ +name: Test 1 + +on: + push: + branches-ignore: + - 'release/*' + pull_request: +env: + CORE_REPO_SHA: 955c92e91b5cd4bcfb43c39efcef086b040471d2 + +jobs: + test-1: + env: + py38: 3.8 + py39: 3.9 + py310: "3.10" + py311: "3.11" + pypy3: pypy-3.8 + 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: [py38, py39, py310, py311, pypy3] + package: + - "resource/opentelemetry-resource-detector-container" + - "sdk-extension/opentelemetry-sdk-extension-aws" + os: [ubuntu-20.04] + exclude: + - python-version: py311 + package: "prometheus-remote-write" + - python-version: pypy3 + package: "prometheus-remote-write" + steps: + - name: Checkout Contrib Repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + - name: Set up Python ${{ env[matrix.python-version] }} + uses: actions/setup-python@v5 + with: + python-version: ${{ env[matrix.python-version] }} + - 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-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('tox.ini', 'gen-requirements.txt', 'dev-requirements.txt') }} + - name: run tox + run: tox -c ${{ matrix.package }}/tox.ini test-${{ matrix.python-version }} -- -ra