# Do not edit this file.
# This file is generated automatically by executing tox -e generate-workflows

name: Contrib {{ file_number }}

on:
  push:
    branches-ignore:
    - 'release/*'
  pull_request:

env:
  CORE_REPO_SHA: ${% raw %}{{ github.sha }}{% endraw %}
  CONTRIB_REPO_SHA: main
  PIP_EXISTS_ACTION: w

jobs:
  {%- for job_data in job_datas %}

  {{ 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 %}
        uses: actions/checkout@v4
        with:
          repository: open-telemetry/opentelemetry-python-contrib
          ref: ${% raw %}{{ env.CONTRIB_REPO_SHA }}{% endraw %}

      - name: Checkout core repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %}
        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 {{ job_data.tox_env }} -- -ra
  {%- endfor %}
