forked from exasol/bucketfs-utils-python
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#170 Moved to pytest-exasol-backend #171
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d82503d
#170 Moved to pytest-exasol-backend
ahsimb 21057d7
#170 Dropped Python 3.8
ahsimb e8c0398
#170 Dropped tests for Python 3.9
ahsimb e127015
#170 Updated the tests
ahsimb 77b3a4c
starting the CI
ahsimb 36bba47
#170 Updated the CI
ahsimb e4e6c89
#170 Updated the CI
ahsimb a768d22
#170 Moved test utils
ahsimb 7a968fa
#170 Moved test utils
ahsimb 3b754c2
#170 Moved test utils
ahsimb 1a77eb9
#170 handle saas tests
ahsimb 31d26ad
#170 trying out the legacy tests
ahsimb a0dbfd7
#170 fixed legacy tests conftest.py
ahsimb 3c636ec
#170 maybe fixed the ci-cd
ahsimb 29e7169
#170 maybe fixed the legacy tests
ahsimb 11f09b9
#170 Enabled saas tests
ahsimb a8be200
#170 Enabled tests with python 3.9
ahsimb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -22,30 +22,19 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
|
||
- 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 | ||
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: Run Legacy Tests | ||
run: poetry run pytest --backend=onprem test_legacy | ||
|
||
cd-job: | ||
name: Continuous Delivery | ||
|
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -29,16 +29,8 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
poetry-version: 1.2.2 | ||
|
||
- name: Checkout ITDE | ||
run: git clone https://github.com/exasol/integration-test-docker-environment.git | ||
working-directory: .. | ||
|
||
- 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 nox -s coverage | ||
- name: Run Unit Tests | ||
run: poetry run nox -s test:unit | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -71,22 +63,26 @@ jobs: | |
name: Run Slow or Expensive Tests (e.g. SaaS) if Requested | ||
runs-on: ubuntu-latest | ||
needs: [ slow-test-detection ] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
python-version: ${{ matrix.python-version }} | ||
poetry-version: "1.2.2" | ||
|
||
- name: Run SaaS Tests | ||
- name: Run Integration Tests | ||
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 | ||
run: poetry run pytest --backend=all test/integration | ||
|
||
gate-2: | ||
name: Gate 2 - Allow Merge | ||
|
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we not need the ITDE anymore? or is it handeled by the pytest-exasol backend?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see configuration in the pytest-exasol backend, but no place the ITDE is actually installed. can you point me to it? i am probably not looking in the right place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not start the ITDE manually when using the pytest plugins. the
pytest-exasol-backend
does it for us.