File tree Expand file tree Collapse file tree 3 files changed +31
-19
lines changed
Expand file tree Collapse file tree 3 files changed +31
-19
lines changed Original file line number Diff line number Diff line change 4040 with :
4141 python-version : ${{ matrix.python-version }}
4242
43- - name : Install Python Test dependencies
44- run : pip install requests webob blinker httpx
43+ - name : Install package with test dependencies
44+ run : pip install --group test .
4545
4646 - name : Set the framework
4747 if : ${{ matrix.framework != 'NONE' }}
7272 run : pip install fastapi==$FASTAPI_VERSION
7373
7474 - name : Run tests
75- run : python -m unittest rollbar.test.discover
75+ run : pytest
Original file line number Diff line number Diff line change 1+ [build-system ]
2+ requires = [" setuptools>=61.0" ]
3+ build-backend = " setuptools.build_meta"
4+
15[project ]
26name = " rollbar"
37dynamic = [" version" ]
@@ -40,21 +44,38 @@ dependencies = [
4044 " requests>=0.12.1" ,
4145]
4246
47+ [dependency-groups ]
48+ test = [
49+ " blinker" ,
50+ " httpx" ,
51+ " pytest" ,
52+ " webob" ,
53+ ]
54+
4355[project .urls ]
4456Homepage = " https://rollbar.com/"
4557Documentation = " https://docs.rollbar.com/docs/python"
4658Changes = " https://github.com/rollbar/pyrollbar/blob/master/CHANGELOG.md"
4759Source = " https://github.com/rollbar/pyrollbar/"
4860
49- [build-system ]
50- requires = [" setuptools>=61.0" ]
51- build-backend = " setuptools.build_meta"
52-
53- [tool .setuptools .dynamic ]
54- version = {attr = " rollbar.__version__" }
55-
5661[project .scripts ]
5762rollbar = " rollbar.cli:main"
5863
5964[project .entry-points ."paste .filter_app_factory" ]
6065pyramid = " rollbar.contrib.pyramid:create_rollbar_middleware"
66+
67+ [tool .pytest ]
68+ testpaths = [
69+ " rollbar/test" ,
70+ ]
71+
72+ [tool .setuptools .dynamic ]
73+ version = {attr = " rollbar.__version__" }
74+
75+ [tool .tox ]
76+ requires = [" tox>=4.22" ]
77+
78+ [tool .tox .env_run_base ]
79+ dependency_groups = [" test" ]
80+ description = " run unit tests"
81+ commands = [[" pytest" , " {posargs}" ]]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments