forked from open-telemetry/opentelemetry-python
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.58 KB
/
ci.yml
File metadata and controls
53 lines (47 loc) · 1.58 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
# Do not edit this file.
# This file is generated automatically by executing tox -e generate-workflows
name: CI
on:
push:
branches:
- 'main'
pull_request:
merge_group:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
misc:
uses: ./.github/workflows/misc.yml
lint:
uses: ./.github/workflows/lint.yml
tests:
uses: ./.github/workflows/test.yml
contrib:
uses: open-telemetry/opentelemetry-python-contrib/.github/workflows/core_contrib_test.yml@main
with:
CORE_REPO_SHA: ${{ github.sha }}
CONTRIB_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
check:
if: always()
needs:
- misc
- lint
- tests
- contrib
runs-on: ubuntu-latest
steps:
# Skip alls-green check for post-release version bumps in merge_group.
# This avoids a deadlock where core and contrib repos wait for each other's releases.
# See RELEASING.md for more details.
- name: Decide whether the needed jobs succeeded or failed
if: ${{ !(github.event_name == 'merge_group' && contains(github.event.merge_group.head_commit.message, 'Update version to')) }}
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}