Skip to content

Commit 13d4b72

Browse files
authored
Merge branch 'master' into master
2 parents 70e7caa + fe4b88b commit 13d4b72

Some content is hidden

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

48 files changed

+1207
-268
lines changed
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
coverage xml
7979
- name: Upload coverage to Codecov
8080
if: ${{ !cancelled() }}
81-
uses: codecov/[email protected].2
81+
uses: codecov/[email protected].7
8282
with:
8383
token: ${{ secrets.CODECOV_TOKEN }}
8484
files: coverage.xml
@@ -99,7 +99,7 @@ jobs:
9999
strategy:
100100
fail-fast: false
101101
matrix:
102-
python-version: ["3.7","3.9","3.11","3.12","3.13"]
102+
python-version: ["3.8","3.9","3.11","3.12","3.13"]
103103
# python3.6 reached EOL and is no longer being supported on
104104
# new versions of hosted runners on Github Actions
105105
# ubuntu-20.04 is the last version that supported python3.6
@@ -150,7 +150,7 @@ jobs:
150150
coverage xml
151151
- name: Upload coverage to Codecov
152152
if: ${{ !cancelled() }}
153-
uses: codecov/[email protected].2
153+
uses: codecov/[email protected].7
154154
with:
155155
token: ${{ secrets.CODECOV_TOKEN }}
156156
files: coverage.xml

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
coverage xml
9898
- name: Upload coverage to Codecov
9999
if: ${{ !cancelled() }}
100-
uses: codecov/[email protected].2
100+
uses: codecov/[email protected].7
101101
with:
102102
token: ${{ secrets.CODECOV_TOKEN }}
103103
files: coverage.xml

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
coverage xml
7575
- name: Upload coverage to Codecov
7676
if: ${{ !cancelled() }}
77-
uses: codecov/[email protected].2
77+
uses: codecov/[email protected].7
7878
with:
7979
token: ${{ secrets.CODECOV_TOKEN }}
8080
files: coverage.xml
@@ -142,7 +142,7 @@ jobs:
142142
coverage xml
143143
- name: Upload coverage to Codecov
144144
if: ${{ !cancelled() }}
145-
uses: codecov/[email protected].2
145+
uses: codecov/[email protected].7
146146
with:
147147
token: ${{ secrets.CODECOV_TOKEN }}
148148
files: coverage.xml

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
coverage xml
6363
- name: Upload coverage to Codecov
6464
if: ${{ !cancelled() }}
65-
uses: codecov/[email protected].2
65+
uses: codecov/[email protected].7
6666
with:
6767
token: ${{ secrets.CODECOV_TOKEN }}
6868
files: coverage.xml

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
with:
5858
python-version: ${{ matrix.python-version }}
5959
allow-prereleases: true
60-
- uses: getsentry/action-clickhouse-in-ci@v1
60+
- uses: getsentry/action-clickhouse-in-ci@v1.1
6161
- name: Setup Test Env
6262
run: |
6363
pip install "coverage[toml]" tox
@@ -101,7 +101,7 @@ jobs:
101101
coverage xml
102102
- name: Upload coverage to Codecov
103103
if: ${{ !cancelled() }}
104-
uses: codecov/[email protected].2
104+
uses: codecov/[email protected].7
105105
with:
106106
token: ${{ secrets.CODECOV_TOKEN }}
107107
files: coverage.xml
@@ -152,7 +152,7 @@ jobs:
152152
with:
153153
python-version: ${{ matrix.python-version }}
154154
allow-prereleases: true
155-
- uses: getsentry/action-clickhouse-in-ci@v1
155+
- uses: getsentry/action-clickhouse-in-ci@v1.1
156156
- name: Setup Test Env
157157
run: |
158158
pip install "coverage[toml]" tox
@@ -196,7 +196,7 @@ jobs:
196196
coverage xml
197197
- name: Upload coverage to Codecov
198198
if: ${{ !cancelled() }}
199-
uses: codecov/[email protected].2
199+
uses: codecov/[email protected].7
200200
with:
201201
token: ${{ secrets.CODECOV_TOKEN }}
202202
files: coverage.xml

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
coverage xml
7575
- name: Upload coverage to Codecov
7676
if: ${{ !cancelled() }}
77-
uses: codecov/[email protected].2
77+
uses: codecov/[email protected].7
7878
with:
7979
token: ${{ secrets.CODECOV_TOKEN }}
8080
files: coverage.xml
@@ -142,7 +142,7 @@ jobs:
142142
coverage xml
143143
- name: Upload coverage to Codecov
144144
if: ${{ !cancelled() }}
145-
uses: codecov/[email protected].2
145+
uses: codecov/[email protected].7
146146
with:
147147
token: ${{ secrets.CODECOV_TOKEN }}
148148
files: coverage.xml

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
python-version: ["3.6","3.8","3.12","3.13"]
30+
python-version: ["3.6","3.7","3.8","3.12","3.13"]
3131
# python3.6 reached EOL and is no longer being supported on
3232
# new versions of hosted runners on Github Actions
3333
# ubuntu-20.04 is the last version that supported python3.6
@@ -73,6 +73,10 @@ jobs:
7373
run: |
7474
set -x # print commands that are executed
7575
./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest"
76+
- name: Test typer latest
77+
run: |
78+
set -x # print commands that are executed
79+
./scripts/runtox.sh "py${{ matrix.python-version }}-typer-latest"
7680
- name: Generate coverage XML (Python 3.6)
7781
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
7882
run: |
@@ -86,7 +90,7 @@ jobs:
8690
coverage xml
8791
- name: Upload coverage to Codecov
8892
if: ${{ !cancelled() }}
89-
uses: codecov/[email protected].2
93+
uses: codecov/[email protected].7
9094
with:
9195
token: ${{ secrets.CODECOV_TOKEN }}
9296
files: coverage.xml
@@ -153,6 +157,10 @@ jobs:
153157
run: |
154158
set -x # print commands that are executed
155159
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond"
160+
- name: Test typer pinned
161+
run: |
162+
set -x # print commands that are executed
163+
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-typer"
156164
- name: Generate coverage XML (Python 3.6)
157165
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
158166
run: |
@@ -166,7 +174,7 @@ jobs:
166174
coverage xml
167175
- name: Upload coverage to Codecov
168176
if: ${{ !cancelled() }}
169-
uses: codecov/[email protected].2
177+
uses: codecov/[email protected].7
170178
with:
171179
token: ${{ secrets.CODECOV_TOKEN }}
172180
files: coverage.xml

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
coverage xml
7575
- name: Upload coverage to Codecov
7676
if: ${{ !cancelled() }}
77-
uses: codecov/[email protected].2
77+
uses: codecov/[email protected].7
7878
with:
7979
token: ${{ secrets.CODECOV_TOKEN }}
8080
files: coverage.xml
@@ -142,7 +142,7 @@ jobs:
142142
coverage xml
143143
- name: Upload coverage to Codecov
144144
if: ${{ !cancelled() }}
145-
uses: codecov/[email protected].2
145+
uses: codecov/[email protected].7
146146
with:
147147
token: ${{ secrets.CODECOV_TOKEN }}
148148
files: coverage.xml

0 commit comments

Comments
 (0)