forked from exasol/bucketfs-utils-python
-
Notifications
You must be signed in to change notification settings - Fork 1
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
* #141: Used plugin pytest_exasol_saas * Updated submission checklist in pull_request_template.md * Updated separation of SaaS tests Following the strategy as demonstrated in GitHub repository saas-api-python.
- Loading branch information
Showing
15 changed files
with
139 additions
and
179 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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
### Submission Checklist | ||
|
||
* [ ] Bumped version number | ||
* [ ] Updated the changelog in file `doc/changes/unreleasd.md` | ||
|
||
If required | ||
* [ ] Updated Documentation | ||
* [ ] Updated API Documentation | ||
* [ ] Updated the changelog | ||
|
||
If doing a release | ||
* [ ] Bumped version number using `poetry run nox -s prepare-release` |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
|
||
steps: | ||
- name: SCM Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
|
||
steps: | ||
- name: SCM Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
|
@@ -27,7 +27,7 @@ jobs: | |
|
||
steps: | ||
- name: SCM Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
|
@@ -47,7 +47,7 @@ jobs: | |
|
||
steps: | ||
- name: SCM Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
|
@@ -74,7 +74,7 @@ jobs: | |
|
||
steps: | ||
- name: SCM Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
|
@@ -96,7 +96,7 @@ jobs: | |
|
||
steps: | ||
- name: SCM Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
|
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,7 +19,7 @@ jobs: | |
name: Checks | ||
uses: ./.github/workflows/checks.yml | ||
|
||
tests-job: | ||
fast-tests: | ||
name: Tests (Python-${{ matrix.python-version }}) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -28,43 +28,69 @@ jobs: | |
python-version: ["3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v5 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.2.2 | ||
|
||
- name: Install Project | ||
run: poetry install | ||
|
||
- name: Checkout ITDE | ||
run: git clone https://github.com/exasol/integration-test-docker-environment.git | ||
working-directory: .. | ||
|
||
- name: Start EXASOL Test-Environment | ||
- name: Start EXASOL Test-Docker-Environment (ITDE) | ||
run: ./start-test-env spawn-test-environment --environment-name test --database-port-forward 8888 --bucketfs-port-forward 6666 --db-mem-size 4GB | ||
working-directory: ../integration-test-docker-environment | ||
|
||
- name: Run Tests | ||
run: poetry run pytest tests | ||
|
||
- name: Fail, if SaaS tests are not activated | ||
if: "!contains(github.event.head_commit.message, '[run-saas-tests]') && (matrix.python-version == '3.10')" | ||
run: | | ||
echo "Failed because the SaaS tests are not activated" | ||
exit 1 | ||
metrics: | ||
needs: [ fast-tests ] | ||
uses: ./.github/workflows/report.yml | ||
|
||
gate-1: | ||
name: Gate 1 - Regular CI | ||
needs: [ fast-tests ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Branch Protection | ||
run: true | ||
|
||
slow-test-detection: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Detect Slow Tests | ||
run: true | ||
environment: | ||
slow-tests | ||
|
||
run-slow-tests: | ||
runs-on: ubuntu-latest | ||
needs: [ slow-test-detection ] | ||
|
||
steps: | ||
- 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.2.2" | ||
|
||
- name: Run SaaS Tests | ||
if: "contains(github.event.head_commit.message, '[run-saas-tests]') && (matrix.python-version == '3.10')" | ||
env: | ||
SAAS_HOST: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_HOST }} | ||
SAAS_ACCOUNT_ID: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_ACCOUNT_ID }} | ||
SAAS_PAT: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_PAT }} | ||
run: poetry run pytest test_saas | ||
|
||
|
||
metrics: | ||
needs: [ ci-job ] | ||
uses: ./.github/workflows/report.yml | ||
gate-2: | ||
name: Gate 2 - Allow Merge | ||
runs-on: ubuntu-latest | ||
needs: [ run-slow-tests ] | ||
steps: | ||
- name: Branch Protection | ||
run: true |
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
|
||
steps: | ||
- name: SCM Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
|
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 |
---|---|---|
|
@@ -140,3 +140,6 @@ doc/api | |
.build_output | ||
.html-documentation | ||
itde/ | ||
|
||
# Emacs | ||
TAGS |
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 +1,9 @@ | ||
# Unreleased | ||
|
||
## Summary | ||
|
||
The current release adds a dependency to plugin `pytest_exasol_saas` and replaces individual test fixtures by those provided by the plugin. | ||
|
||
## Refactorings | ||
|
||
* #141: Used plugin `pytest_exasol_saas` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.