Skip to content

Add Microsoft Opentelemetry Distro Configuration #15

Add Microsoft Opentelemetry Distro Configuration

Add Microsoft Opentelemetry Distro Configuration #15

Workflow file for this run

name: PR validation
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
quality:
name: Black and Pylint
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]
- name: Check formatting with Black
run: black --check src tests microsoft/tests
- name: Lint with Pylint
run: pylint src tests microsoft/tests
tests:
name: Pytest (${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[test]
- name: Run tests
run: pytest