Skip to content

Commit

Permalink
fix tests following pytest release 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gluap committed Jan 28, 2024
1 parent b47fb15 commit 2575f1f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ jobs:

steps:
- name: Setup python for test ${{ matrix.py }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
- uses: actions/checkout@v2
- name: Install tox-gh
run: python -m pip install tox-gh
- name: Setup test suite
run: tox r -vv --notest
- name: Run test suite
run: tox r --skip-pkg-install
env:
PYTEST_ADDOPTS: "-vv --durations=10"
- uses: actions/checkout@v4
- name: Install module
run: python -m pip install .[test]
- name: run pytest
run: pytest

13 changes: 10 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@

from pyduofern import __version__ as version

test_deps = [
'tox', 'pytest<8', 'pytest-asyncio'
],

extras = {
'test': test_deps,
}

setup(name='pyduofern',
version=version,
description='Library for controlling Rademacher DuoFern actors using python. Requires the Rademacher'
Expand All @@ -27,9 +35,8 @@
zip_safe=False,
include_package_data=False,

tests_require=[
'tox', 'pytest', 'pytest-asyncio'
],
tests_require=test_deps,
extras_require=extras,

scripts=["scripts/duofern_cli.py"],

Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist=
38
39
310
311

[testenv]
deps =
Expand All @@ -14,5 +14,5 @@ commands = py.test {posargs}

[gh]
python=
3.8 = py38
3.9 = py39
3.11 = py311
3.10 = py310

0 comments on commit 2575f1f

Please sign in to comment.