diff --git a/.github/workflows/pythonapp.yaml b/.github/workflows/pythonapp.yaml index 45f8e864..2f42ef9e 100644 --- a/.github/workflows/pythonapp.yaml +++ b/.github/workflows/pythonapp.yaml @@ -31,7 +31,7 @@ jobs: cache: poetry - name: Install tox run: | - python -m pip install --upgrade tox tox-gh-actions + python -m pip install --upgrade tox tox-gh-actions tox-poetry-installer[poetry] - name: Lint with flake8 run: | pip install flake8 diff --git a/tox.ini b/tox.ini index cf75560f..2d7ad4e0 100644 --- a/tox.ini +++ b/tox.ini @@ -11,20 +11,17 @@ python = 3.10: py310 [testenv:mypy] -whitelist_externals = poetry commands = - poetry install -v - poetry run mypy . + mypy . [testenv:duckdb_master] -whitelist_externals = poetry -commands = - poetry install -v - poetry run pip install duckdb --pre -U - poetry run pytest --junitxml=results.xml --cov --cov-report xml:coverage.xml --verbose -rs +deps = + duckdb [testenv] -whitelist_externals = poetry commands = - poetry install -v - poetry run pytest --junitxml=results.xml --cov --cov-report xml:coverage.xml --verbose -rs + pytest --junitxml=results.xml --cov --cov-report xml:coverage.xml --verbose -rs +install_dev_deps = True +require_poetry = True +passenv = HOME +install_command = pip install --pre -U {opts} {packages}