Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Aug 6, 2024
1 parent 0d301cc commit c6517a4
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 6 deletions.
69 changes: 63 additions & 6 deletions .github/workflows/contrib_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches-ignore:
- 'release/*'
pull_request:

env:
CORE_REPO_SHA: ${{ github.sha }}
CONTRIB_REPO_SHA: main
Expand Down Expand Up @@ -631,8 +632,8 @@ jobs:
- name: Run tests
run: tox -e py38-test-instrumentation-falcon-2 -- -ra

py38-test-instrumentation-fastapi:
name: instrumentation-fastapi
py38-test-instrumentation-fastapi-main:
name: instrumentation-fastapi-main
runs-on: ubuntu-latest
steps:
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
Expand All @@ -657,7 +658,7 @@ jobs:
run: pip install tox

- name: Run tests
run: tox -e py38-test-instrumentation-fastapi -- -ra
run: tox -e py38-test-instrumentation-fastapi-main -- -ra

py38-test-instrumentation-fastapi-slim:
name: instrumentation-fastapi-slim
Expand Down Expand Up @@ -1023,8 +1024,36 @@ jobs:
- name: Run tests
run: tox -e py38-test-exporter-prometheus-remote-write -- -ra

py38-test-instrumentation-mysql:
name: instrumentation-mysql
py38-test-instrumentation-mysql-0:
name: instrumentation-mysql-0
runs-on: ubuntu-latest
steps:
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
uses: actions/checkout@v4
with:
repository: open-telemetry/opentelemetry-python-contrib
ref: ${{ env.CONTRIB_REPO_SHA }}

- name: Checkout core repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4
with:
repository: open-telemetry/opentelemetry-python
path: opentelemetry-python-core

- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: "3.8"
architecture: "x64"

- name: Install tox
run: pip install tox

- name: Run tests
run: tox -e py38-test-instrumentation-mysql-0 -- -ra

py38-test-instrumentation-mysql-1:
name: instrumentation-mysql-1
runs-on: ubuntu-latest
steps:
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
Expand All @@ -1049,7 +1078,7 @@ jobs:
run: pip install tox

- name: Run tests
run: tox -e py38-test-instrumentation-mysql -- -ra
run: tox -e py38-test-instrumentation-mysql-1 -- -ra

py38-test-instrumentation-mysqlclient:
name: instrumentation-mysqlclient
Expand Down Expand Up @@ -2087,6 +2116,34 @@ jobs:
- name: Run tests
run: tox -e py38-test-instrumentation-kafka-python -- -ra

py38-test-instrumentation-kafka-pythonng:
name: instrumentation-kafka-pythonng
runs-on: ubuntu-latest
steps:
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
uses: actions/checkout@v4
with:
repository: open-telemetry/opentelemetry-python-contrib
ref: ${{ env.CONTRIB_REPO_SHA }}

- name: Checkout core repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4
with:
repository: open-telemetry/opentelemetry-python
path: opentelemetry-python-core

- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: "3.8"
architecture: "x64"

- name: Install tox
run: pip install tox

- name: Run tests
run: tox -e py38-test-instrumentation-kafka-pythonng -- -ra

py38-test-instrumentation-confluent-kafka:
name: instrumentation-confluent-kafka
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches-ignore:
- 'release/*'
pull_request:

env:
CORE_REPO_SHA: main
CONTRIB_REPO_SHA: main
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/misc_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches-ignore:
- 'release/*'
pull_request:

env:
CORE_REPO_SHA: main
CONTRIB_REPO_SHA: main
Expand Down Expand Up @@ -186,6 +187,9 @@ jobs:
generate-workflows:
name: generate-workflows
runs-on: ubuntu-latest
if: |
!contains(github.event.pull_request.labels.*.name, 'Skip generate-workflows')
&& github.actor != 'opentelemetrybot'
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches-ignore:
- 'release/*'
pull_request:

env:
CORE_REPO_SHA: main
CONTRIB_REPO_SHA: main
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches-ignore:
- 'release/*'
pull_request:

env:
CORE_REPO_SHA: main
CONTRIB_REPO_SHA: main
Expand Down

0 comments on commit c6517a4

Please sign in to comment.