-
Notifications
You must be signed in to change notification settings - Fork 235
56 lines (46 loc) · 1.32 KB
/
ci-python.yml
File metadata and controls
56 lines (46 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: "Continuous Build (Python)"
on:
push:
paths:
- 'python/**'
- '.github/workflows/ci-python.yml'
branches:
- main
pull_request:
paths:
- 'python/**'
- '.github/workflows/ci-python.yml'
branches:
- main
env:
AWS_REGION: us-east-1
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# If you add a python version here, please make sure that the collector/Makefile publish and publish-layer targets
# get updated as well
python: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- name: Checkout this repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Python for OTel Python SDK
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: ${{ matrix.python }}
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Run ruff lint
working-directory: python/src/otel
run: |
uv sync --group dev
uv run ruff check .
uv run ruff format --check .
- name: Run tests
working-directory: python/src/otel
run: |
uv sync --extra test --extra instrumentation
uv run pytest tests