Skip to content

Commit

Permalink
[Backport 1.2.latest] trying to fix tox issue causing failures (#538)
Browse files Browse the repository at this point in the history
* trying to fix tox issue causing failures (#534)

* updating tox python version, changing contriburing file example for integration tests

* remove change to contributing file for backport ease

* add changelog

* trying to incorprorate mulit python version

* trying to fix unit test

* remove unneded call to basepython

* back to 3.8

(cherry picked from commit 9511847)

* created allowlist_externals part for unit test

* adding allowlist to spark-session

Co-authored-by: Matthew McKnight <91097623+McKnight-42@users.noreply.github.com>
Co-authored-by: Matthew McKnight <matthew.mcknight@dbtlabs.com>
  • Loading branch information
3 people authored Dec 9, 2022
1 parent 4ec4e72 commit aba6242
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changes/unreleased/Under the Hood-20221202-140724.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Under the Hood
body: updating python version in tox
time: 2022-12-02T14:07:24.377668-06:00
custom:
Author: McKnight-42
Issue: "536"
PR: "534"
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def _get_dbt_core_version():
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
python_requires=">=3.7",
)
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
skipsdist = True
envlist = unit, flake8, integration-spark-thrift

[testenv:unit]
basepython = python3.8
[testenv:{unit,py37,py38,py39,py310,py}]
allowlist_externals =
/bin/bash
commands = /bin/bash -c '{envpython} -m pytest -v {posargs} tests/unit'
passenv = DBT_* PYTEST_ADDOPTS
deps =
Expand Down Expand Up @@ -52,6 +53,8 @@ deps =

[testenv:integration-spark-session]
basepython = python3
allowlist_externals =
/bin/bash
commands = /bin/bash -c '{envpython} -m pytest -v --profile spark_session {posargs} -n4 tests/functional/adapter/*'
passenv =
DBT_*
Expand Down

0 comments on commit aba6242

Please sign in to comment.