-
Notifications
You must be signed in to change notification settings - Fork 234
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
Add Github action for integration test #896
Closed
JCZuurmond
wants to merge
17
commits into
dbt-labs:main
from
JCZuurmond:add-github-workflow-for-integration-tests
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
fd6f6f0
Add Github action for integration test
JCZuurmond 795e40a
Update tox
JCZuurmond ff39c5d
Fetch spark from https link
JCZuurmond 1505fc6
Use Spark version 3.1.2
JCZuurmond 44fe33f
Seperate running Spark session and thrift
JCZuurmond 2655631
Use Spark 3.1.2 and Hadoop 3.2
JCZuurmond 915f67e
Reset tox.ini
JCZuurmond f0ef215
Remove base pythons in tox.ini
JCZuurmond e8457df
Fix reference to Docker compose file
JCZuurmond 842466a
Remove timeout
JCZuurmond 0738f2d
Remove artifact steps
JCZuurmond 277bef1
Bump Spark and Hadoop versions
JCZuurmond 8d5853d
Reset Spark and Hadoop version
JCZuurmond 919528a
Update comment
JCZuurmond 15e48fd
Add changie
JCZuurmond ab90c4c
Merge branch 'main' into add-github-workflow-for-integration-tests
Fleid 9742d8d
Merge branch 'main' into add-github-workflow-for-integration-tests
Fleid 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Under the Hood | ||
body: Add Github action for integration testing | ||
time: 2023-09-29T16:12:18.968755+02:00 | ||
custom: | ||
Author: JCZuurmond | ||
Issue: "719" |
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,75 @@ | ||
# **what?** | ||
# Runs integration tests. | ||
|
||
# **why?** | ||
# Ensure code runs as expected. | ||
|
||
# **when?** | ||
# This will run for all PRs, when code is pushed to a release | ||
# branch, and when manually triggered. | ||
|
||
name: Integration tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "*.latest" | ||
- "releases/*" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
# explicitly turn off permissions for `GITHUB_TOKEN` | ||
permissions: read-all | ||
|
||
# will cancel previous workflows triggered by the same event and for the same ref for PRs or same SHA otherwise | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ contains(github.event_name, 'pull_request') && github.event.pull_request.head.ref || github.sha }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
tests: | ||
name: test with python ${{ matrix.python-version }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
|
||
env: | ||
TOXENV: "unit" | ||
PYTEST_ADDOPTS: "-v --color=yes --csv test_results.csv" | ||
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: isbang/[email protected] | ||
with: | ||
compose-file: "./docker-compose.yml" | ||
|
||
- name: Install tox | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install tox | ||
|
||
- name: Run tox for Spark session | ||
run: tox -e integration-spark-session | ||
|
||
- name: Run tox for Spark thrift | ||
run: tox -e integration-spark-thrift |
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.
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.
The tests do not work yet for a later version. We will solve that later. This is the same version as in the Dockerfile used in the circle ci