-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bug] Make the ruamel integeration compatiable with legacy versions (#…
…925) * Rearrange tests Signed-off-by: Ching Yi, Chan <[email protected]> * Remove type hints Signed-off-by: Ching Yi, Chan <[email protected]> * minify test matrix Signed-off-by: Ching Yi, Chan <[email protected]> --------- Signed-off-by: Ching Yi, Chan <[email protected]>
- Loading branch information
Showing
7 changed files
with
94 additions
and
49 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Run tox tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
pip install -e '.[duckdb]' | ||
pip install tox | ||
- name: Run tox-sqlalchemy | ||
run: tox -c tox-sqlalchemy.ini | ||
- name: Run tox-ruamel | ||
run: tox -c tox-ruamel.ini | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
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,25 @@ | ||
[tox] | ||
env_list = ruamel-{0.17.21,0.17.22} | ||
minversion = 4.7.0 | ||
|
||
[testenv] | ||
description = run the tests with pytest | ||
package = wheel | ||
wheel_build_env = .pkg | ||
|
||
|
||
deps = | ||
pytest>=6 | ||
dbt-core>=1.6,<1.7 | ||
dbt-duckdb>=1.6,<1.7 | ||
ruamel-0.17.21: ruamel.yaml<=0.17.21 | ||
ruamel-0.17.22: ruamel.yaml>0.17.21,<0.18 | ||
|
||
|
||
commands = | ||
pytest {tty:--color=yes} {posargs} | ||
|
||
setenv = | ||
PYTHONPATH = {toxinidir}/tests/:{env:PYTHONPATH} | ||
|
||
|
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,25 @@ | ||
[tox] | ||
env_list = sqlalchemy-{14,20} | ||
minversion = 4.7.0 | ||
|
||
[testenv] | ||
description = run the tests with pytest | ||
package = wheel | ||
wheel_build_env = .pkg | ||
|
||
|
||
deps = | ||
pytest>=6 | ||
dbt-core>=1.6,<1.7 | ||
dbt-duckdb>=1.6,<1.7 | ||
sqlalchemy-14: sqlalchemy>=1.4,<2.0 | ||
sqlalchemy-20: sqlalchemy>=2.0 | ||
|
||
|
||
commands = | ||
pytest {tty:--color=yes} {posargs} | ||
|
||
setenv = | ||
PYTHONPATH = {toxinidir}/tests/:{env:PYTHONPATH} | ||
|
||
|