-
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.
and formatted workflows
- Loading branch information
Showing
8 changed files
with
92 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,9 @@ jobs: | |
get_exasol_versions: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: SCM Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
with: | ||
|
@@ -17,8 +19,8 @@ jobs: | |
|
||
- name: Print matrix | ||
run: poetry run nox --non-interactive -s "get-all-db-versions" | ||
|
||
- id: set-matrix | ||
run: | | ||
echo "::set-output name=matrix::$(poetry run nox --non-interactive -s 'get-all-db-versions')" | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
run: echo "::set-output name=matrix::$(poetry run nox --non-interactive -s 'get-all-db-versions')" | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} |
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 |
---|---|---|
|
@@ -19,30 +19,34 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Run all tests for Exasol ${{ matrix.exasol_version }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: SCM Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
poetry-version: '1.8.2' | ||
- name: Allow Unprivileged User Namespaces | ||
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 | ||
|
||
- name: Fail, because not all tests are activated | ||
run: | | ||
git fetch | ||
GIT_LOG="$(git log --pretty=oneline --abbrev-commit ${{ github.event.after }} | head -n 1)" | ||
echo "$GIT_LOG" | ||
if [[ "$GIT_LOG" == *"[run all tests]"* ]]; then | ||
echo "All tests activated" | ||
exit 0 | ||
else | ||
echo "Fail, because not all tests are activated" | ||
exit 1 | ||
fi | ||
env: | ||
EXASOL_VERSION: "${{ matrix.exasol_version }}" | ||
# We want to deactivate running all tests only for pull_requests | ||
if: ${{ github.event_name == 'pull_request' }} | ||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
poetry-version: '1.8.2' | ||
|
||
- name: Run all tests | ||
run: poetry run nox -s "run-tests(db_version='${{ matrix.exasol_version }}')" | ||
- name: Fail, because not all tests are activated | ||
run: | | ||
git fetch | ||
GIT_LOG="$(git log --pretty=oneline --abbrev-commit ${{ github.event.after }} | head -n 1)" | ||
echo "$GIT_LOG" | ||
if [[ "$GIT_LOG" == *"[run all tests]"* ]]; then | ||
echo "All tests activated" | ||
exit 0 | ||
else | ||
echo "Fail, because not all tests are activated" | ||
exit 1 | ||
fi | ||
env: | ||
EXASOL_VERSION: "${{ matrix.exasol_version }}" | ||
# We want to deactivate running all tests only for pull_requests | ||
if: ${{ github.event_name == 'pull_request' }} | ||
|
||
- name: Run all tests | ||
run: poetry run nox -s "run-tests(db_version='${{ matrix.exasol_version }}')" |
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 |
---|---|---|
|
@@ -12,21 +12,26 @@ jobs: | |
uses: ./.github/workflows/get_exasol_versions.yml | ||
|
||
test-db-versions-minimal: | ||
name: Run Minimal Tests for Exasol ${{ matrix.exasol_version }} | ||
needs: get_exasol_versions | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
exasol_version: ${{fromJson(needs.get_exasol_versions.outputs.matrix)}} | ||
runs-on: ubuntu-latest | ||
name: Run minimum tests for Exasol ${{ matrix.exasol_version }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: SCM Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
poetry-version: '1.8.2' | ||
- name: Allow Unprivileged User Namespaces | ||
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
poetry-version: '1.8.2' | ||
|
||
- name: Run Minimal Tests | ||
run: poetry run nox -s "run-minimal-tests(db_version='${{ matrix.exasol_version }}')" | ||
|
||
- name: Run minimal tests | ||
run: poetry run nox -s "run-minimal-tests(db_version='${{ matrix.exasol_version }}')" |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
|
||
jobs: | ||
test-python-version-all-tests: | ||
name: Run Tests with Python ${{ matrix.python_version }} and Exasol ${{ matrix.exasol_version }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -16,15 +17,19 @@ jobs: | |
python_version: | ||
- "3.9" | ||
- "3.10" | ||
name: Run tests with Python ${{ matrix.python_version }} and Exasol ${{ matrix.exasol_version }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: SCM Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
poetry-version: '1.8.2' | ||
- name: Run all tests | ||
run: poetry run nox -s "run-tests(db_version='${{ matrix.exasol_version }}')" | ||
- name: Allow Unprivileged User Namespaces | ||
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
poetry-version: '1.8.2' | ||
|
||
- name: Run all tests | ||
run: poetry run nox -s "run-tests(db_version='${{ matrix.exasol_version }}')" |
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