Skip to content

Commit a7da7c0

Browse files
committed
Update workflows
1 parent eca0915 commit a7da7c0

File tree

7 files changed

+59
-33
lines changed

7 files changed

+59
-33
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
include-hidden-files: true
119119

120120
Tests:
121-
name: Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}})
121+
name: Unit-Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}})
122122
needs: [ Documentation, Lint, Type-Check, Security]
123123
runs-on: ubuntu-latest
124124
env:

.github/workflows/merge-gate.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ jobs:
1414

1515
slow-checks:
1616
name: Slow
17-
# Even though the environment "manual-approval" will be created automatically,
18-
# it still needs to be configured to require interactive review.
19-
# See project settings on GitHub (Settings / Environments / manual-approval).
20-
environment: manual-approval
2117
uses: ./.github/workflows/slow-checks.yml
2218

2319
# This job ensures inputs have been executed successfully.

.github/workflows/slow-checks.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ on:
99
jobs:
1010

1111
Tests:
12-
name: Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}})
13-
needs: [ Documentation, Lint, Type-Check, Security]
12+
name: Integration-Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}})
1413
runs-on: ubuntu-latest
14+
# Even though the environment "manual-approval" will be created automatically,
15+
# it still needs to be configured to require interactive review.
16+
# See project settings on GitHub (Settings / Environments / manual-approval).
17+
environment: manual-approval
1518
env:
1619
GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
1720
strategy:

exasol/toolbox/templates/github/workflows/checks.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ jobs:
124124
include-hidden-files: true
125125

126126
Tests:
127-
name: Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}})
128-
needs: [ Documentation, Lint, Type-Check, Security ]
127+
name: Unit-Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}})
128+
needs: [ Documentation, Lint, Type-Check, Security]
129129
runs-on: ubuntu-latest
130130
env:
131131
GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
@@ -144,13 +144,12 @@ jobs:
144144
with:
145145
python-version: ${{ matrix.python-version }}
146146

147-
- name: Run Tests and Compute Coverage
148-
run: poetry run nox -s test:coverage -- -- --db-version ${{ matrix.exasol-version }}
147+
- name: Run Tests and Collect Coverage
148+
run: poetry run nox -s test:unit -- -- --coverage --db-version ${{ matrix.exasol-version }}
149149

150150
- name: Upload Artifacts
151151
uses: actions/[email protected]
152152
with:
153-
name: coverage-python${{ matrix.python-version }}
153+
name: coverage-python${{ matrix.python-version }}-fast
154154
path: .coverage
155155
include-hidden-files: true
156-

exasol/toolbox/templates/github/workflows/merge-gate.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,17 @@ jobs:
1414

1515
slow-checks:
1616
name: Slow
17-
runs-on: ubuntu-latest
18-
19-
# Even though the environment "manual-approval" will be created automatically,
20-
# it still needs to be configured to require interactive review.
21-
# See project settings on GitHub (Settings / Environments / manual-approval).
22-
environment: manual-approval
23-
24-
# Replace the steps below with the required actions
25-
# and/or add additional jobs if required
26-
# Note:
27-
# If you add additional jobs, make sure they are added as a requirement
28-
# to the approve-merge job's input requirements (needs).
29-
steps:
30-
- name: Tests
31-
run: |
32-
echo "Slow tests ran successfully"
33-
17+
uses: ./.github/workflows/slow-checks.yml
3418

3519
# This job ensures inputs have been executed successfully.
3620
approve-merge:
37-
name: Allow Merge
21+
name: Allow Merge
3822
runs-on: ubuntu-latest
3923
# If you need additional jobs to be part of the merge gate, add them below
4024
needs: [ fast-checks, slow-checks ]
4125

4226
# Each job requires a step, so we added this dummy step.
4327
steps:
44-
- name: Approve
28+
- name: Approve
4529
run: |
4630
echo "Merge Approved"

exasol/toolbox/templates/github/workflows/report.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
- name: Copy Artifacts into Root Folder
3131
working-directory: ./artifacts
3232
run: |
33-
cp coverage-python3.9/.coverage ../
33+
poetry run coverage combine --keep coverage-python3.9*/.coverage
34+
cp .coverage ../
3435
cp lint-python3.9/.lint.txt ../
3536
cp security-python3.9/.security.json ../
3637
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Slow-Checks
2+
3+
on:
4+
workflow_call:
5+
secrets:
6+
ALTERNATIVE_GITHUB_TOKEN:
7+
required: false
8+
9+
jobs:
10+
11+
Tests:
12+
name: Integration-Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}})
13+
runs-on: ubuntu-latest
14+
# Even though the environment "manual-approval" will be created automatically,
15+
# it still needs to be configured to require interactive review.
16+
# See project settings on GitHub (Settings / Environments / manual-approval).
17+
environment: manual-approval
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
24+
exasol-version: [ "7.1.9" ]
25+
26+
steps:
27+
- name: SCM Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Setup Python & Poetry Environment
31+
uses: exasol/python-toolbox/.github/actions/[email protected]
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
35+
- name: Run Tests and Collect Coverage
36+
run: poetry run nox -s test:integration -- -- --coverage --db-version ${{ matrix.exasol-version }}
37+
38+
- name: Upload Artifacts
39+
uses: actions/[email protected]
40+
with:
41+
name: coverage-python${{ matrix.python-version }}-slow
42+
path: .coverage
43+
include-hidden-files: true

0 commit comments

Comments
 (0)