|
1 | | -# # Do not edit this file. |
2 | | -# # This file is generated automatically by executing tox -e generate-workflows |
3 | | - |
4 | | -# name: Misc 0 |
5 | | - |
6 | | -# on: |
7 | | -# push: |
8 | | -# branches-ignore: |
9 | | -# - 'release/*' |
10 | | -# - 'otelbot/*' |
11 | | -# pull_request: |
12 | | - |
13 | | -# permissions: |
14 | | -# contents: read |
15 | | - |
16 | | -# concurrency: |
17 | | -# group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
18 | | -# cancel-in-progress: true |
19 | | - |
20 | | -# env: |
21 | | -# # Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main' |
22 | | -# # For PRs you can change the inner fallback ('main') |
23 | | -# # For pushes you change the outer fallback ('main') |
24 | | -# # The logic below is used during releases and depends on having an equivalent branch name in the core repo. |
25 | | -# CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && ( |
26 | | -# contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref || |
27 | | -# contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref || |
28 | | -# 'main' |
29 | | -# ) || 'main' }} |
30 | | -# CONTRIB_REPO_SHA: main |
31 | | -# PIP_EXISTS_ACTION: w |
32 | | - |
33 | | -# jobs: |
34 | | - |
35 | | -# spellcheck: |
36 | | -# name: spellcheck |
37 | | -# runs-on: ubuntu-latest |
38 | | -# timeout-minutes: 30 |
39 | | -# steps: |
40 | | -# - name: Checkout repo @ SHA - ${{ github.sha }} |
41 | | -# uses: actions/checkout@v4 |
42 | | - |
43 | | -# - name: Set up Python 3.11 |
44 | | -# uses: actions/setup-python@v5 |
45 | | -# with: |
46 | | -# python-version: "3.11" |
47 | | - |
48 | | -# - name: Install tox |
49 | | -# run: pip install tox-uv |
50 | | - |
51 | | -# - name: Run tests |
52 | | -# run: tox -e spellcheck |
53 | | - |
54 | | -# docker-tests: |
55 | | -# name: docker-tests |
56 | | -# runs-on: ubuntu-latest |
57 | | -# timeout-minutes: 30 |
58 | | -# steps: |
59 | | -# - name: Checkout repo @ SHA - ${{ github.sha }} |
60 | | -# uses: actions/checkout@v4 |
61 | | - |
62 | | -# - name: Set up Python 3.11 |
63 | | -# uses: actions/setup-python@v5 |
64 | | -# with: |
65 | | -# python-version: "3.11" |
66 | | - |
67 | | -# - name: Install tox |
68 | | -# run: pip install tox-uv |
69 | | - |
70 | | -# - name: Run tests |
71 | | -# run: tox -e docker-tests |
72 | | - |
73 | | -# docs: |
74 | | -# name: docs |
75 | | -# runs-on: ubuntu-latest |
76 | | -# timeout-minutes: 30 |
77 | | -# if: | |
78 | | -# github.event.pull_request.user.login != 'otelbot[bot]' && github.event_name == 'pull_request' |
79 | | -# steps: |
80 | | -# - name: Checkout repo @ SHA - ${{ github.sha }} |
81 | | -# uses: actions/checkout@v4 |
82 | | - |
83 | | -# - name: Set up Python 3.11 |
84 | | -# uses: actions/setup-python@v5 |
85 | | -# with: |
86 | | -# python-version: "3.11" |
87 | | - |
88 | | -# - name: Install tox |
89 | | -# run: pip install tox-uv |
90 | | - |
91 | | -# - name: Run tests |
92 | | -# run: tox -e docs |
93 | | - |
94 | | -# generate: |
95 | | -# name: generate |
96 | | -# runs-on: ubuntu-latest |
97 | | -# timeout-minutes: 30 |
98 | | -# steps: |
99 | | -# - name: Checkout repo @ SHA - ${{ github.sha }} |
100 | | -# uses: actions/checkout@v4 |
101 | | - |
102 | | -# - name: Set up Python 3.11 |
103 | | -# uses: actions/setup-python@v5 |
104 | | -# with: |
105 | | -# python-version: "3.11" |
106 | | - |
107 | | -# - name: Install tox |
108 | | -# run: pip install tox-uv |
109 | | - |
110 | | -# - name: Run tests |
111 | | -# run: tox -e generate |
112 | | - |
113 | | -# - name: Check workflows are up to date |
114 | | -# run: git diff --exit-code || (echo 'Generated code is out of date, run "tox -e generate" and commit the changes in this PR.' && exit 1) |
115 | | - |
116 | | -# generate-workflows: |
117 | | -# name: generate-workflows |
118 | | -# runs-on: ubuntu-latest |
119 | | -# timeout-minutes: 30 |
120 | | -# if: | |
121 | | -# !contains(github.event.pull_request.labels.*.name, 'Skip generate-workflows') |
122 | | -# && github.event.pull_request.user.login != 'otelbot[bot]' && github.event_name == 'pull_request' |
123 | | -# steps: |
124 | | -# - name: Checkout repo @ SHA - ${{ github.sha }} |
125 | | -# uses: actions/checkout@v4 |
126 | | - |
127 | | -# - name: Set up Python 3.11 |
128 | | -# uses: actions/setup-python@v5 |
129 | | -# with: |
130 | | -# python-version: "3.11" |
131 | | - |
132 | | -# - name: Install tox |
133 | | -# run: pip install tox-uv |
134 | | - |
135 | | -# - name: Run tests |
136 | | -# run: tox -e generate-workflows |
137 | | - |
138 | | -# - name: Check workflows are up to date |
139 | | -# run: git diff --exit-code || (echo 'Generated workflows are out of date, run "tox -e generate-workflows" and commit the changes in this PR.' && exit 1) |
140 | | - |
141 | | -# shellcheck: |
142 | | -# name: shellcheck |
143 | | -# runs-on: ubuntu-latest |
144 | | -# timeout-minutes: 30 |
145 | | -# steps: |
146 | | -# - name: Checkout repo @ SHA - ${{ github.sha }} |
147 | | -# uses: actions/checkout@v4 |
148 | | - |
149 | | -# - name: Set up Python 3.11 |
150 | | -# uses: actions/setup-python@v5 |
151 | | -# with: |
152 | | -# python-version: "3.11" |
153 | | - |
154 | | -# - name: Install tox |
155 | | -# run: pip install tox-uv |
156 | | - |
157 | | -# - name: Run tests |
158 | | -# run: tox -e shellcheck |
159 | | - |
160 | | -# precommit: |
161 | | -# name: precommit |
162 | | -# runs-on: ubuntu-latest |
163 | | -# timeout-minutes: 30 |
164 | | -# steps: |
165 | | -# - name: Checkout repo @ SHA - ${{ github.sha }} |
166 | | -# uses: actions/checkout@v4 |
167 | | - |
168 | | -# - name: Set up Python 3.11 |
169 | | -# uses: actions/setup-python@v5 |
170 | | -# with: |
171 | | -# python-version: "3.11" |
172 | | - |
173 | | -# - name: Install tox |
174 | | -# run: pip install tox-uv |
175 | | - |
176 | | -# - name: Run tests |
177 | | -# run: tox -e precommit |
178 | | - |
179 | | -# typecheck: |
180 | | -# name: typecheck |
181 | | -# runs-on: ubuntu-latest |
182 | | -# timeout-minutes: 30 |
183 | | -# steps: |
184 | | -# - name: Checkout repo @ SHA - ${{ github.sha }} |
185 | | -# uses: actions/checkout@v4 |
186 | | - |
187 | | -# - name: Set up Python 3.11 |
188 | | -# uses: actions/setup-python@v5 |
189 | | -# with: |
190 | | -# python-version: "3.11" |
191 | | - |
192 | | -# - name: Install tox |
193 | | -# run: pip install tox-uv |
194 | | - |
195 | | -# - name: Run tests |
196 | | -# run: tox -e typecheck |
| 1 | +# Do not edit this file. |
| 2 | +# This file is generated automatically by executing tox -e generate-workflows |
| 3 | + |
| 4 | +name: Misc 0 |
| 5 | + |
| 6 | +on: |
| 7 | + push: |
| 8 | + branches-ignore: |
| 9 | + - 'release/*' |
| 10 | + - 'otelbot/*' |
| 11 | + pull_request: |
| 12 | + |
| 13 | +permissions: |
| 14 | + contents: read |
| 15 | + |
| 16 | +concurrency: |
| 17 | + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| 18 | + cancel-in-progress: true |
| 19 | + |
| 20 | +env: |
| 21 | + # Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main' |
| 22 | + # For PRs you can change the inner fallback ('main') |
| 23 | + # For pushes you change the outer fallback ('main') |
| 24 | + # The logic below is used during releases and depends on having an equivalent branch name in the core repo. |
| 25 | + CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && ( |
| 26 | + contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref || |
| 27 | + contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref || |
| 28 | + 'main' |
| 29 | + ) || 'main' }} |
| 30 | + CONTRIB_REPO_SHA: main |
| 31 | + PIP_EXISTS_ACTION: w |
| 32 | + |
| 33 | +jobs: |
| 34 | + |
| 35 | + spellcheck: |
| 36 | + name: spellcheck |
| 37 | + runs-on: ubuntu-latest |
| 38 | + timeout-minutes: 30 |
| 39 | + steps: |
| 40 | + - name: Checkout repo @ SHA - ${{ github.sha }} |
| 41 | + uses: actions/checkout@v4 |
| 42 | + |
| 43 | + - name: Set up Python 3.11 |
| 44 | + uses: actions/setup-python@v5 |
| 45 | + with: |
| 46 | + python-version: "3.11" |
| 47 | + |
| 48 | + - name: Install tox |
| 49 | + run: pip install tox-uv |
| 50 | + |
| 51 | + - name: Run tests |
| 52 | + run: tox -e spellcheck |
| 53 | + |
| 54 | + docker-tests: |
| 55 | + name: docker-tests |
| 56 | + runs-on: ubuntu-latest |
| 57 | + timeout-minutes: 30 |
| 58 | + steps: |
| 59 | + - name: Checkout repo @ SHA - ${{ github.sha }} |
| 60 | + uses: actions/checkout@v4 |
| 61 | + |
| 62 | + - name: Set up Python 3.11 |
| 63 | + uses: actions/setup-python@v5 |
| 64 | + with: |
| 65 | + python-version: "3.11" |
| 66 | + |
| 67 | + - name: Install tox |
| 68 | + run: pip install tox-uv |
| 69 | + |
| 70 | + - name: Run tests |
| 71 | + run: tox -e docker-tests |
| 72 | + |
| 73 | + docs: |
| 74 | + name: docs |
| 75 | + runs-on: ubuntu-latest |
| 76 | + timeout-minutes: 30 |
| 77 | + if: | |
| 78 | + github.event.pull_request.user.login != 'otelbot[bot]' && github.event_name == 'pull_request' |
| 79 | + steps: |
| 80 | + - name: Checkout repo @ SHA - ${{ github.sha }} |
| 81 | + uses: actions/checkout@v4 |
| 82 | + |
| 83 | + - name: Set up Python 3.11 |
| 84 | + uses: actions/setup-python@v5 |
| 85 | + with: |
| 86 | + python-version: "3.11" |
| 87 | + |
| 88 | + - name: Install tox |
| 89 | + run: pip install tox-uv |
| 90 | + |
| 91 | + - name: Run tests |
| 92 | + run: tox -e docs |
| 93 | + |
| 94 | + generate: |
| 95 | + name: generate |
| 96 | + runs-on: ubuntu-latest |
| 97 | + timeout-minutes: 30 |
| 98 | + steps: |
| 99 | + - name: Checkout repo @ SHA - ${{ github.sha }} |
| 100 | + uses: actions/checkout@v4 |
| 101 | + |
| 102 | + - name: Set up Python 3.11 |
| 103 | + uses: actions/setup-python@v5 |
| 104 | + with: |
| 105 | + python-version: "3.11" |
| 106 | + |
| 107 | + - name: Install tox |
| 108 | + run: pip install tox-uv |
| 109 | + |
| 110 | + - name: Run tests |
| 111 | + run: tox -e generate |
| 112 | + |
| 113 | + - name: Check workflows are up to date |
| 114 | + run: git diff --exit-code || (echo 'Generated code is out of date, run "tox -e generate" and commit the changes in this PR.' && exit 1) |
| 115 | + |
| 116 | + generate-workflows: |
| 117 | + name: generate-workflows |
| 118 | + runs-on: ubuntu-latest |
| 119 | + timeout-minutes: 30 |
| 120 | + if: | |
| 121 | + !contains(github.event.pull_request.labels.*.name, 'Skip generate-workflows') |
| 122 | + && github.event.pull_request.user.login != 'otelbot[bot]' && github.event_name == 'pull_request' |
| 123 | + steps: |
| 124 | + - name: Checkout repo @ SHA - ${{ github.sha }} |
| 125 | + uses: actions/checkout@v4 |
| 126 | + |
| 127 | + - name: Set up Python 3.11 |
| 128 | + uses: actions/setup-python@v5 |
| 129 | + with: |
| 130 | + python-version: "3.11" |
| 131 | + |
| 132 | + - name: Install tox |
| 133 | + run: pip install tox-uv |
| 134 | + |
| 135 | + - name: Run tests |
| 136 | + run: tox -e generate-workflows |
| 137 | + |
| 138 | + - name: Check workflows are up to date |
| 139 | + run: git diff --exit-code || (echo 'Generated workflows are out of date, run "tox -e generate-workflows" and commit the changes in this PR.' && exit 1) |
| 140 | + |
| 141 | + # shellcheck: |
| 142 | + # name: shellcheck |
| 143 | + # runs-on: ubuntu-latest |
| 144 | + # timeout-minutes: 30 |
| 145 | + # steps: |
| 146 | + # - name: Checkout repo @ SHA - ${{ github.sha }} |
| 147 | + # uses: actions/checkout@v4 |
| 148 | + |
| 149 | + # - name: Set up Python 3.11 |
| 150 | + # uses: actions/setup-python@v5 |
| 151 | + # with: |
| 152 | + # python-version: "3.11" |
| 153 | + |
| 154 | + # - name: Install tox |
| 155 | + # run: pip install tox-uv |
| 156 | + |
| 157 | + # - name: Run tests |
| 158 | + # run: tox -e shellcheck |
| 159 | + |
| 160 | + # precommit: |
| 161 | + # name: precommit |
| 162 | + # runs-on: ubuntu-latest |
| 163 | + # timeout-minutes: 30 |
| 164 | + # steps: |
| 165 | + # - name: Checkout repo @ SHA - ${{ github.sha }} |
| 166 | + # uses: actions/checkout@v4 |
| 167 | + |
| 168 | + # - name: Set up Python 3.11 |
| 169 | + # uses: actions/setup-python@v5 |
| 170 | + # with: |
| 171 | + # python-version: "3.11" |
| 172 | + |
| 173 | + # - name: Install tox |
| 174 | + # run: pip install tox-uv |
| 175 | + |
| 176 | + # - name: Run tests |
| 177 | + # run: tox -e precommit |
| 178 | + |
| 179 | + # typecheck: |
| 180 | + # name: typecheck |
| 181 | + # runs-on: ubuntu-latest |
| 182 | + # timeout-minutes: 30 |
| 183 | + # steps: |
| 184 | + # - name: Checkout repo @ SHA - ${{ github.sha }} |
| 185 | + # uses: actions/checkout@v4 |
| 186 | + |
| 187 | + # - name: Set up Python 3.11 |
| 188 | + # uses: actions/setup-python@v5 |
| 189 | + # with: |
| 190 | + # python-version: "3.11" |
| 191 | + |
| 192 | + # - name: Install tox |
| 193 | + # run: pip install tox-uv |
| 194 | + |
| 195 | + # - name: Run tests |
| 196 | + # run: tox -e typecheck |
0 commit comments