Skip to content

Commit 00765c2

Browse files
authored
Refactoring/588 update ptb and remove doc links tasks (#589)
* Update to exasol-toolbox 1.6.0 * Fix broken links * Remove duplicated link code, as using from PTB in CI * Update changelog & dependencies
1 parent 6560a41 commit 00765c2

25 files changed

+607
-481
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Setup Python & Poetry Environment
21-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
21+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
2222

2323
- name: Build Artifacts
2424
run: poetry build

.github/workflows/check-release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Setup Python & Poetry Environment
18-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
18+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
1919

2020
- name: Check Tag Version
2121
# make sure the pushed/created tag matched the project version

.github/workflows/checks.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fetch-depth: 0
1717

1818
- name: Setup Python & Poetry Environment
19-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
19+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
2020

2121
- name: Check Version(s)
2222
run: poetry run -- nox -s version:check
@@ -32,12 +32,16 @@ jobs:
3232
uses: actions/checkout@v4
3333

3434
- name: Setup Python & Poetry Environment
35-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
35+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
3636

3737
- name: Build Documentation
3838
run: |
3939
poetry run -- nox -s docs:build
4040
41+
- name: Link Check
42+
run: |
43+
poetry run -- nox -s links:check
44+
4145
build-matrix:
4246
name: Generate Build Matrix
4347
uses: ./.github/workflows/matrix-python.yml
@@ -55,7 +59,7 @@ jobs:
5559
uses: actions/checkout@v4
5660

5761
- name: Setup Python & Poetry Environment
58-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
62+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
5963

6064
- name: Run changelog update check
6165
run: poetry run -- nox -s changelog:updated
@@ -74,7 +78,7 @@ jobs:
7478
uses: actions/checkout@v4
7579

7680
- name: Setup Python & Poetry Environment
77-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
81+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
7882
with:
7983
python-version: ${{ matrix.python-version }}
8084

@@ -105,7 +109,7 @@ jobs:
105109
uses: actions/checkout@v4
106110

107111
- name: Setup Python & Poetry Environment
108-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
112+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
109113
with:
110114
python-version: ${{ matrix.python-version }}
111115

@@ -127,7 +131,7 @@ jobs:
127131
uses: actions/checkout@v4
128132

129133
- name: Setup Python & Poetry Environment
130-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
134+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
131135
with:
132136
python-version: ${{ matrix.python-version }}
133137

@@ -151,7 +155,7 @@ jobs:
151155
uses: actions/checkout@v4
152156

153157
- name: Setup Python & Poetry Environment
154-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
158+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
155159

156160
- name: Run format check
157161
run: poetry run -- nox -s project:format
@@ -173,7 +177,7 @@ jobs:
173177
uses: actions/checkout@v4
174178

175179
- name: Setup Python & Poetry Environment
176-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
180+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
177181
with:
178182
python-version: ${{ matrix.python-version }}
179183

.github/workflows/ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
name: CI
22

33
on:
4-
push:
5-
branches-ignore:
6-
- "github-pages/*"
7-
- "gh-pages/*"
8-
- "main"
9-
- "master"
4+
pull_request:
5+
types: [opened, synchronize, reopened]
106
schedule:
11-
# "At 00:00 on every 7th day-of-month from 1 through 31." (https://crontab.guru)
7+
# At 00:00 on every 7th day-of-month from 1 through 31. (https://crontab.guru)
128
- cron: "0 0 1/7 * *"
139

1410
jobs:
@@ -22,5 +18,6 @@ jobs:
2218
Metrics:
2319
needs: [ CI ]
2420
uses: ./.github/workflows/report.yml
21+
secrets: inherit
2522
permissions:
2623
contents: read

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fetch-depth: 0
1818

1919
- name: Setup Python & Poetry Environment
20-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
20+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
2121

2222
- name: Build Documentation
2323
run: |

.github/workflows/matrix-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818

1919
- name: Setup Python & Poetry Environment
20-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
20+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
2121

2222
- name: Generate matrix
2323
run: poetry run -- nox -s matrix:all

.github/workflows/matrix-exasol.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818

1919
- name: Setup Python & Poetry Environment
20-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
20+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
2121

2222
- name: Generate matrix
2323
run: poetry run -- nox -s matrix:exasol

.github/workflows/matrix-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818

1919
- name: Setup Python & Poetry Environment
20-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
20+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
2121

2222
- name: Generate matrix
2323
run: poetry run -- nox -s matrix:python

.github/workflows/pr-merge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ jobs:
2828
metrics:
2929
needs: [ ci-job ]
3030
uses: ./.github/workflows/report.yml
31+
secrets: inherit
3132
permissions:
3233
contents: read

.github/workflows/report.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,24 @@ jobs:
1919
fetch-depth: 0
2020

2121
- name: Setup Python & Poetry Environment
22-
uses: exasol/python-toolbox/.github/actions/python-environment@1.3.0
22+
uses: exasol/python-toolbox/.github/actions/python-environment@1.6.0
2323

2424
- name: Download Artifacts
2525
uses: actions/[email protected]
2626
with:
2727
path: ./artifacts
2828

2929
- name: Copy Artifacts into Root Folder
30-
working-directory: ./artifacts
31-
run: |
32-
poetry run -- coverage combine --keep coverage-python3.9*/.coverage
33-
# Errors during copying are ignored because they are checked in the next step
34-
cp .coverage ../ || true
35-
cp lint-python3.9/.lint.txt ../ || true
36-
cp lint-python3.9/.lint.json ../ || true
37-
cp security-python3.9/.security.json ../ || true
30+
run: poetry run -- nox -s artifacts:copy -- artifacts
3831

3932
- name: Validate Artifacts
4033
run: poetry run -- nox -s artifacts:validate
4134

35+
- name: Upload to sonar
36+
env:
37+
SONAR_TOKEN: "${{ secrets.SONAR_TOKEN }}"
38+
run: poetry run -- nox -s sonar:check
39+
4240
- name: Generate Report
4341
run: poetry run -- nox -s project:report -- --format json | tee metrics.json
4442

0 commit comments

Comments
 (0)