Skip to content

Commit 853bf7f

Browse files
committed
Merge branch 'potel-base' into antonpirker/potel/openai
2 parents 54f2635 + 64d1930 commit 853bf7f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1238
-555
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
python-version: 3.12
4646

4747
- run: |
48-
pip install jinja2
49-
python scripts/split-tox-gh-actions/split-tox-gh-actions.py --fail-on-changes
48+
pip install -r scripts/split_tox_gh_actions/requirements.txt
49+
python scripts/split_tox_gh_actions/split_tox_gh_actions.py --fail-on-changes
5050
5151
build_lambda_layer:
5252
name: Build Package
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Automation: Notify issues for release"
2+
on:
3+
release:
4+
types:
5+
- published
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: Which version to notify issues for
10+
required: false
11+
12+
# This workflow is triggered when a release is published
13+
jobs:
14+
release-comment-issues:
15+
runs-on: ubuntu-20.04
16+
name: Notify issues
17+
steps:
18+
- name: Get version
19+
id: get_version
20+
run: echo "version=${{ github.event.inputs.version || github.event.release.tag_name }}" >> $GITHUB_OUTPUT
21+
22+
- name: Comment on linked issues that are mentioned in release
23+
if: |
24+
steps.get_version.outputs.version != ''
25+
&& !contains(steps.get_version.outputs.version, 'a')
26+
&& !contains(steps.get_version.outputs.version, 'b')
27+
&& !contains(steps.get_version.outputs.version, 'rc')
28+
uses: getsentry/release-comment-issues-gh-action@v1
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
version: ${{ steps.get_version.outputs.version }}

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,20 @@ jobs:
1818
runs-on: ubuntu-latest
1919
name: "Release a new version"
2020
steps:
21+
- name: Get auth token
22+
id: token
23+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
24+
with:
25+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
26+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
2127
- uses: actions/[email protected]
2228
with:
23-
token: ${{ secrets.GH_RELEASE_PAT }}
29+
token: ${{ steps.token.outputs.token }}
2430
fetch-depth: 0
2531
- name: Prepare release
2632
uses: getsentry/action-prepare-release@v1
2733
env:
28-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
34+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
2935
with:
3036
version: ${{ github.event.inputs.version }}
3137
force: ${{ github.event.inputs.force }}

.github/workflows/test-integrations-ai.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Do not edit this file. This file is generated automatically by executing
2-
# python scripts/split-tox-gh-actions/split-tox-gh-actions.py
1+
# Do not edit this YAML file. This file is generated automatically by executing
2+
# python scripts/split_tox_gh_actions/split_tox_gh_actions.py
3+
# The template responsible for it is in
4+
# scripts/split_tox_gh_actions/templates/base.jinja
35
name: Test AI
46
on:
57
push:
@@ -68,7 +70,7 @@ jobs:
6870
coverage xml
6971
- name: Upload coverage to Codecov
7072
if: ${{ !cancelled() }}
71-
uses: codecov/codecov-action@v5.0.7
73+
uses: codecov/codecov-action@v5.1.1
7274
with:
7375
token: ${{ secrets.CODECOV_TOKEN }}
7476
files: coverage.xml
@@ -130,7 +132,7 @@ jobs:
130132
coverage xml
131133
- name: Upload coverage to Codecov
132134
if: ${{ !cancelled() }}
133-
uses: codecov/codecov-action@v5.0.7
135+
uses: codecov/codecov-action@v5.1.1
134136
with:
135137
token: ${{ secrets.CODECOV_TOKEN }}
136138
files: coverage.xml

.github/workflows/test-integrations-aws.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Do not edit this file. This file is generated automatically by executing
2-
# python scripts/split-tox-gh-actions/split-tox-gh-actions.py
1+
# Do not edit this YAML file. This file is generated automatically by executing
2+
# python scripts/split_tox_gh_actions/split_tox_gh_actions.py
3+
# The template responsible for it is in
4+
# scripts/split_tox_gh_actions/templates/base.jinja
35
name: Test AWS
46
on:
57
push:
@@ -87,7 +89,7 @@ jobs:
8789
coverage xml
8890
- name: Upload coverage to Codecov
8991
if: ${{ !cancelled() }}
90-
uses: codecov/codecov-action@v5.0.7
92+
uses: codecov/codecov-action@v5.1.1
9193
with:
9294
token: ${{ secrets.CODECOV_TOKEN }}
9395
files: coverage.xml

.github/workflows/test-integrations-cloud.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Do not edit this file. This file is generated automatically by executing
2-
# python scripts/split-tox-gh-actions/split-tox-gh-actions.py
1+
# Do not edit this YAML file. This file is generated automatically by executing
2+
# python scripts/split_tox_gh_actions/split_tox_gh_actions.py
3+
# The template responsible for it is in
4+
# scripts/split_tox_gh_actions/templates/base.jinja
35
name: Test Cloud
46
on:
57
push:
@@ -64,7 +66,7 @@ jobs:
6466
coverage xml
6567
- name: Upload coverage to Codecov
6668
if: ${{ !cancelled() }}
67-
uses: codecov/codecov-action@v5.0.7
69+
uses: codecov/codecov-action@v5.1.1
6870
with:
6971
token: ${{ secrets.CODECOV_TOKEN }}
7072
files: coverage.xml
@@ -122,7 +124,7 @@ jobs:
122124
coverage xml
123125
- name: Upload coverage to Codecov
124126
if: ${{ !cancelled() }}
125-
uses: codecov/codecov-action@v5.0.7
127+
uses: codecov/codecov-action@v5.1.1
126128
with:
127129
token: ${{ secrets.CODECOV_TOKEN }}
128130
files: coverage.xml

.github/workflows/test-integrations-common.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Do not edit this file. This file is generated automatically by executing
2-
# python scripts/split-tox-gh-actions/split-tox-gh-actions.py
1+
# Do not edit this YAML file. This file is generated automatically by executing
2+
# python scripts/split_tox_gh_actions/split_tox_gh_actions.py
3+
# The template responsible for it is in
4+
# scripts/split_tox_gh_actions/templates/base.jinja
35
name: Test Common
46
on:
57
push:
@@ -52,7 +54,7 @@ jobs:
5254
coverage xml
5355
- name: Upload coverage to Codecov
5456
if: ${{ !cancelled() }}
55-
uses: codecov/codecov-action@v5.0.7
57+
uses: codecov/codecov-action@v5.1.1
5658
with:
5759
token: ${{ secrets.CODECOV_TOKEN }}
5860
files: coverage.xml

.github/workflows/test-integrations-dbs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Do not edit this file. This file is generated automatically by executing
2-
# python scripts/split-tox-gh-actions/split-tox-gh-actions.py
1+
# Do not edit this YAML file. This file is generated automatically by executing
2+
# python scripts/split_tox_gh_actions/split_tox_gh_actions.py
3+
# The template responsible for it is in
4+
# scripts/split_tox_gh_actions/templates/base.jinja
35
name: Test DBs
46
on:
57
push:
@@ -91,7 +93,7 @@ jobs:
9193
coverage xml
9294
- name: Upload coverage to Codecov
9395
if: ${{ !cancelled() }}
94-
uses: codecov/codecov-action@v5.0.7
96+
uses: codecov/codecov-action@v5.1.1
9597
with:
9698
token: ${{ secrets.CODECOV_TOKEN }}
9799
files: coverage.xml
@@ -176,7 +178,7 @@ jobs:
176178
coverage xml
177179
- name: Upload coverage to Codecov
178180
if: ${{ !cancelled() }}
179-
uses: codecov/codecov-action@v5.0.7
181+
uses: codecov/codecov-action@v5.1.1
180182
with:
181183
token: ${{ secrets.CODECOV_TOKEN }}
182184
files: coverage.xml

.github/workflows/test-integrations-graphql.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Do not edit this file. This file is generated automatically by executing
2-
# python scripts/split-tox-gh-actions/split-tox-gh-actions.py
1+
# Do not edit this YAML file. This file is generated automatically by executing
2+
# python scripts/split_tox_gh_actions/split_tox_gh_actions.py
3+
# The template responsible for it is in
4+
# scripts/split_tox_gh_actions/templates/base.jinja
35
name: Test GraphQL
46
on:
57
push:
@@ -64,7 +66,7 @@ jobs:
6466
coverage xml
6567
- name: Upload coverage to Codecov
6668
if: ${{ !cancelled() }}
67-
uses: codecov/codecov-action@v5.0.7
69+
uses: codecov/codecov-action@v5.1.1
6870
with:
6971
token: ${{ secrets.CODECOV_TOKEN }}
7072
files: coverage.xml
@@ -122,7 +124,7 @@ jobs:
122124
coverage xml
123125
- name: Upload coverage to Codecov
124126
if: ${{ !cancelled() }}
125-
uses: codecov/codecov-action@v5.0.7
127+
uses: codecov/codecov-action@v5.1.1
126128
with:
127129
token: ${{ secrets.CODECOV_TOKEN }}
128130
files: coverage.xml

.github/workflows/test-integrations-misc.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Do not edit this file. This file is generated automatically by executing
2-
# python scripts/split-tox-gh-actions/split-tox-gh-actions.py
1+
# Do not edit this YAML file. This file is generated automatically by executing
2+
# python scripts/split_tox_gh_actions/split_tox_gh_actions.py
3+
# The template responsible for it is in
4+
# scripts/split_tox_gh_actions/templates/base.jinja
35
name: Test Misc
46
on:
57
push:
@@ -69,14 +71,18 @@ jobs:
6971
run: |
7072
set -x # print commands that are executed
7173
./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest"
74+
- name: Test typer latest
75+
run: |
76+
set -x # print commands that are executed
77+
./scripts/runtox.sh "py${{ matrix.python-version }}-typer-latest"
7278
- name: Generate coverage XML
7379
if: ${{ !cancelled() }}
7480
run: |
7581
coverage combine .coverage-sentry-*
7682
coverage xml
7783
- name: Upload coverage to Codecov
7884
if: ${{ !cancelled() }}
79-
uses: codecov/codecov-action@v5.0.7
85+
uses: codecov/codecov-action@v5.1.1
8086
with:
8187
token: ${{ secrets.CODECOV_TOKEN }}
8288
files: coverage.xml
@@ -139,14 +145,18 @@ jobs:
139145
run: |
140146
set -x # print commands that are executed
141147
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond"
148+
- name: Test typer pinned
149+
run: |
150+
set -x # print commands that are executed
151+
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-typer"
142152
- name: Generate coverage XML
143153
if: ${{ !cancelled() }}
144154
run: |
145155
coverage combine .coverage-sentry-*
146156
coverage xml
147157
- name: Upload coverage to Codecov
148158
if: ${{ !cancelled() }}
149-
uses: codecov/codecov-action@v5.0.7
159+
uses: codecov/codecov-action@v5.1.1
150160
with:
151161
token: ${{ secrets.CODECOV_TOKEN }}
152162
files: coverage.xml

0 commit comments

Comments
 (0)