forked from open-telemetry/opentelemetry-python
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (29 loc) · 878 Bytes
/
public-api-check.yml
File metadata and controls
40 lines (29 loc) · 878 Bytes
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
name: Public API check
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
branches:
- main
jobs:
publicAPICheck:
runs-on: ubuntu-latest
if: "!contains(github.event.pull_request.labels.*.name, 'Approve Public API check')"
steps:
- name: Checkout the repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout main
run: git checkout main
- name: Pull origin
run: git pull --rebase=false origin main
- name: Checkout pull request
run: git checkout ${{ github.event.pull_request.head.sha }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install tox
run: pip install tox
- name: Public API Check
run: tox -e public-symbols-check