-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fixes #427
- Loading branch information
Showing
28 changed files
with
351 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,3 @@ jobs: | |
needs: [ cd-job ] | ||
name: Publish Documentation | ||
uses: ./.github/workflows/gh-pages.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,56 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- "github-pages/*" | ||
- "gh-pages/*" | ||
- "main" | ||
- "master" | ||
pull_request: | ||
types: [opened, reopened] | ||
schedule: | ||
# “At 00:00 on every 7th day-of-month from 1 through 31.” (https://crontab.guru) | ||
- cron: "0 0 1/7 * *" | ||
|
||
jobs: | ||
|
||
CI: | ||
uses: ./.github/workflows/merge-gate.yml | ||
secrets: inherit | ||
checks: | ||
name: Checks | ||
uses: ./.github/workflows/checks.yml | ||
|
||
Metrics: | ||
needs: [ CI ] | ||
fast-tests: | ||
name: Fast Tests | ||
uses: ./.github/workflows/fast-tests.yml | ||
|
||
slow-tests-approval: | ||
name: Approve Slow Tests | ||
runs-on: ubuntu-latest | ||
|
||
# Even though the environment "manual-approval" will be created automatically, | ||
# it still needs to be configured to require interactive review. | ||
# See project settings on GitHub (Settings / Environments / manual-approval). | ||
environment: manual-approval | ||
|
||
# Replace the steps below with the required actions | ||
# and/or add additional jobs if required | ||
# Note: | ||
# If you add additional jobs, make sure they are added as a requirement | ||
# to the approve-merge job's input requirements (needs). | ||
steps: | ||
- name: Tests | ||
run: echo "Slow tests approved" | ||
|
||
slow-tests: | ||
name: Slow Tests | ||
needs: slow-tests-approval | ||
uses: ./.github/workflows/slow-tests.yml | ||
#Do not inherit secrets because ITDE Slow Tests does not need it | ||
|
||
metrics: | ||
name: Report Metrics | ||
needs: [ checks, fast-tests ] | ||
uses: ./.github/workflows/report.yml | ||
|
||
# This job ensures inputs have been executed successfully. | ||
approve-merge: | ||
name: Allow Merge | ||
runs-on: ubuntu-latest | ||
# If you need additional jobs to be part of the merge gate, add them below | ||
needs: [ checks, fast-tests, slow-tests ] | ||
|
||
# Each job requires a step, so we added this dummy step. | ||
steps: | ||
- name: Approve | ||
run: echo "Merge Approved" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Fast Tests | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
ALTERNATIVE_GITHUB_TOKEN: | ||
required: false | ||
|
||
jobs: | ||
build-matrix: | ||
name: Generate Build Matrix | ||
uses: ./.github/workflows/matrix-python.yml | ||
|
||
fast-tests: | ||
name: Unit-Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}}) | ||
needs: [ build-matrix ] | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }} | ||
|
||
steps: | ||
- name: SCM Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/python-environment@0.20.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Run Tests and Collect Coverage | ||
run: poetry run nox -s test:unit -- -- --coverage | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4.4.0 | ||
with: | ||
name: coverage-python${{ matrix.python-version }}-fast | ||
path: .coverage | ||
include-hidden-files: true | ||
|
||
db-version-minimal-tests: | ||
name: Run Db Versions Minimal Tests | ||
uses: ./.github/workflows/test-db-versions-minimal.yml | ||
|
||
test-docker-starter: | ||
name: Test Docker Starter | ||
uses: ./.github/workflows/test-docker-starter.yml | ||
|
||
test-shell-scripts: | ||
name: Test Shell Scripts | ||
uses: ./.github/workflows/test-shell-scripts.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build Matrix (Python) | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
matrix: | ||
description: "Generates the python version build matrix" | ||
value: ${{ jobs.python_versions.outputs.matrix }} | ||
|
||
jobs: | ||
python_versions: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: SCM Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/python-environment@0.20.0 | ||
|
||
- name: Generate matrix | ||
run: poetry run nox -s matrix:python | ||
|
||
- id: set-matrix | ||
run: | | ||
echo "matrix=$(poetry run nox -s matrix:python)" >> $GITHUB_OUTPUT | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Periodic Validation | ||
|
||
on: | ||
schedule: | ||
# “At 00:00 on every 7th day-of-month from 1 through 31.” (https://crontab.guru) | ||
- cron: "0 0 1/7 * *" | ||
|
||
jobs: | ||
|
||
checks: | ||
name: Checks | ||
uses: ./.github/workflows/checks.yml | ||
|
||
fast-tests: | ||
name: Fast Tests | ||
uses: ./.github/workflows/fast-tests.yml | ||
|
||
slow-tests: | ||
name: Slow Tests | ||
uses: ./.github/workflows/slow-tests.yml | ||
#Do not inherit secrets because ITDE Slow Tests does not need it | ||
|
||
metrics: | ||
name: Report Metrics | ||
needs: [ checks, fast-tests ] | ||
uses: ./.github/workflows/report.yml | ||
|
Oops, something went wrong.