-
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.
Signed-off-by: Ching Yi, Chan <[email protected]>
- Loading branch information
Showing
5 changed files
with
77 additions
and
18 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.8 | ||
- 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,31 @@ | ||
[tox] | ||
env_list = | ||
py{38,39,310,311}-sqlalchemy-{14,20} | ||
minversion = 4.7.0 | ||
|
||
[testenv] | ||
description = run the tests with pytest | ||
package = wheel | ||
wheel_build_env = .pkg | ||
|
||
basepython = | ||
py38: python3.8 | ||
py39: python3.9 | ||
py310: python3.10 | ||
py311: python3.11 | ||
|
||
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} | ||
|
||
|