Skip to content
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

Update tox config #51

Merged
merged 6 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, 3.10, 3.11]

steps:
- name: Set up Python ${{ matrix.python-version }}
Expand Down
22 changes: 13 additions & 9 deletions {{cookiecutter.project_name}}/tox.ini
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
[tox]
skipsdist = True
envlist = py37,py38,py39
envlist = py37,py38,py39,py310,py311

[testenv:{unit,py37,py38,py39,py}]
[testenv:{unit,py37,py38,py39,py310,py311,py}]
description = unit testing
skip_install = True
passenv = DBT_* PYTEST_ADOPTS
skip_install = true
passenv =
DBT_*
PYTEST_ADDOPTS
commands = {envpython} -m pytest {posargs} tests/unit
deps =
-rdev-requirements.txt
-e.


[testenv:{integration,py37,py38,py39,py}-{ {{ cookiecutter.directory_name }} }]
[testenv:{integration,py37,py38,py39,py310,py311,py}-{{{ cookiecutter.directory_name }}}]
description = adapter plugin integration testing
skip_install = true
passenv = DBT_* {{ cookiecutter.adapter_upper }}_TEST_* PYTEST_ADOPTS
passenv =
DBT_*
{{ cookiecutter.adapter_upper }}_TEST_*
PYTEST_ADDOPTS
commands =
{{ cookiecutter.directory_name }}: {envpython} -m pytest -m profile_{{ cookiecutter.directory_name }} {posargs:test/integration}
{{ cookiecutter.directory_name }}: {envpython} -m pytest {posargs} -m profile_{{ cookiecutter.directory_name }} tests/integration
{{ cookiecutter.directory_name }}: {envpython} -m pytest {posargs} tests/functional
deps =
-rdev_requirements.txt
-rdev-requirements.txt
-e.