Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4

- name: Build and Check Package
uses: hynek/build-and-inspect-python-package@v2.13.0
uses: hynek/build-and-inspect-python-package@v3.0.2
with:
attest-build-provenance-github: 'true'

Expand Down Expand Up @@ -61,4 +61,4 @@ jobs:
uses: softprops/action-gh-release@v2
with:
files: dist/*
tag_name: v${{ github.event.inputs.version }}
tag_name: v${{ github.event.inputs.version }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build and Check Package
uses: hynek/build-and-inspect-python-package@v2.13.0
uses: hynek/build-and-inspect-python-package@v3.0.2

test:
needs: [package]
Expand Down
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
UNRELEASED
----------

- #55: Use ``pytest.fixture`` instead of the deprecated ``pytest.yield_fixture``, which warns with ``PytestRemovedIn10Warning`` on pytest 9.
- #52: Move ``pylibmc`` and ``MySQLdb`` library imports to specific tests -- this makes it easier to test a subset of the ``pytest-services`` package without having to install all the dependencies.

2.2.2
Expand Down
4 changes: 2 additions & 2 deletions pytest_services/folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def root_dir():
return '/tmp'


@pytest.yield_fixture(scope='session')
@pytest.fixture(scope='session')
def base_dir(request, session_id, root_dir, services_log):
"""The directory where test run artifacts should be stored.

Expand Down Expand Up @@ -52,7 +52,7 @@ def memory_root_dir(root_dir):
return root_dir


@pytest.yield_fixture(scope='session')
@pytest.fixture(scope='session')
def memory_base_dir(request, session_id, memory_root_dir, services_log):
"""The directory where memory test run artifacts should be stored.

Expand Down
Loading