File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ jobs:
6161 - name : Run tests without xdist
6262 uses : fizyk/actions-reuse/.github/actions/pipenv-run@v4.1.1
6363 with :
64- command : py.test -svv -p no:xdist --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml
64+ command : pytest -c pyproject.oldest.toml -svv -p no:xdist --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml
6565 - name : Run xdist test
6666 uses : fizyk/actions-reuse/.github/actions/pipenv-run@v4.1.1
6767 with :
68- command : py.test -n auto --dist loadgroup --max-worker-restart 0 --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml:coverage-xdist.xml
68+ command : pytest -n auto -c pyproject.oldest.toml --dist loadgroup --max-worker-restart 0 --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml:coverage-xdist.xml
6969 - uses : actions/upload-artifact@v5
7070 if : failure()
7171 with :
Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ jobs:
5656 - name : Run test
5757 uses : fizyk/actions-reuse/.github/actions/pipenv-run@v4.1.1
5858 with :
59- command : py.test -svv -p no:xdist --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml
59+ command : pytest -svv -p no:xdist --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml
6060 - name : Run xdist test
6161 uses : fizyk/actions-reuse/.github/actions/pipenv-run@v4.1.1
6262 with :
63- command : py.test -n auto --dist loadgroup --max-worker-restart 0 --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml:coverage-xdist.xml
63+ command : pytest -n auto --dist loadgroup --max-worker-restart 0 --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml:coverage-xdist.xml
6464 - uses : actions/upload-artifact@v5
6565 if : failure()
6666 with :
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ verify_ssl = true
44name = " pypi"
55
66[packages ]
7- pytest = " ==8.4.2 "
7+ pytest = " ==9.0.0 "
88port-for = " ==1.0.0"
99mirakuru = " ==3.0.1"
1010packaging = " ==25.0"
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ Example usage:
254254
255255 .. code-block :: sh
256256
257- py.test tests --postgresql-port=8888
257+ pytest tests --postgresql-port=8888
258258
259259
260260 * specify your port as ``postgresql_port `` in your ``pytest.ini `` file.
Original file line number Diff line number Diff line change 1+ Update pytest configuration to toml-native
Original file line number Diff line number Diff line change 1+ [tool .pytest .ini_options ]
2+ xfail_strict =true
3+ addopts = " --showlocals --verbose --cov"
4+ testpaths = " tests"
5+ pytester_example_dir = " tests/examples"
6+ norecursedirs = " examples"
Original file line number Diff line number Diff line change @@ -56,12 +56,12 @@ include = ["pytest_postgresql*"]
5656exclude = [" tests*" ]
5757namespaces = false
5858
59- [tool .pytest . ini_options ]
60- xfail_strict =true
61- addopts = " --showlocals --verbose --cov"
62- testpaths = " tests"
59+ [tool .pytest ]
60+ strict_xfail =true
61+ addopts = [ " --showlocals" , " --verbose" , " --cov" ]
62+ testpaths = [ " tests" ]
6363pytester_example_dir = " tests/examples"
64- norecursedirs = " examples"
64+ norecursedirs = [ " examples" ]
6565
6666[tool .ruff ]
6767line-length = 120
You can’t perform that action at this time.
0 commit comments