Skip to content

Commit c95bff3

Browse files
committed
fixup: two in one
1 parent f6de736 commit c95bff3

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/oldest-postgres.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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: pytest -c oldest/pyproject.toml -svv -p no:xdist --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml
64+
command: pytest -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: pytest -n auto -c oldest/pyproject.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
68+
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
6969
- uses: actions/upload-artifact@v5
7070
if: failure()
7171
with:

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ testpaths = ["tests"]
6363
pytester_example_dir = "tests/examples"
6464
norecursedirs = ["examples"]
6565

66+
[tool.pytest.ini_options]
67+
xfail_strict=true
68+
addopts = "--showlocals --verbose --cov"
69+
testpaths = "tests"
70+
pytester_example_dir = "tests/examples"
71+
norecursedirs = "../examples"
72+
73+
6674
[tool.ruff]
6775
line-length = 120
6876
target-version = 'py310'

0 commit comments

Comments
 (0)