forked from open-telemetry/opentelemetry-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1020 Bytes
/
pr-python.yml
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
name: "Pull Request (Python)"
on:
pull_request:
paths:
- 'python/**'
branches:
- main
env:
AWS_REGION: us-east-1
# Copied this CORE_REPO_SHA from
# https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/.github/workflows/test.yml#L9
CORE_REPO_SHA: v1.18.0
jobs:
PR-Python:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.8', '3.9']
steps:
- name: Checkout this repo
uses: actions/checkout@v3
- name: Setup Python for OTel Python SDK
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install tox testing package
working-directory: python/src
run: |
pip install tox
tox
- name: Set up Go for ADOT Collector
uses: actions/setup-go@v4
with:
go-version: '^1.19'
- name: Build Python Layer which includes ADOT Collector
working-directory: python/src
run: ./run.sh -b