diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca41cc9..2d2a467 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v7 with: - version: "0.9.29" + version: "0.11.2" - name: Run tests run: uv run --extra=solrcloud run-tests.py diff --git a/README.rst b/README.rst index e592488..09ceef3 100644 --- a/README.rst +++ b/README.rst @@ -279,8 +279,20 @@ For consistency, this project uses `pre-commit `_ to ma Running Tests ============= -The ``run-tests.py`` script will automatically perform the steps below and is -recommended for testing by default unless you need more control. +This project uses ``pytest`` and is typically run via ``uv``. + +First, install ``uv`` by following the official installation guide: + +https://docs.astral.sh/uv/getting-started/installation/ + +The ``run-tests.py`` script automatically performs the steps below and is +recommended for running the tests unless you need more control. + +You can run it with: + +.. code-block:: console + + $ uv run --extra=solrcloud run-tests.py Running a test Solr instance ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -301,6 +313,14 @@ To stop and remove the Solr test environment:: Running the tests ~~~~~~~~~~~~~~~~~ +Run the standard test suite with: + +.. code-block:: console + + $ uv run pytest + +To run the SolrCloud tests in addition to the standard test suite, enable the `solrcloud` extra: + .. code-block:: console - $ python -m unittest tests + $ uv run --extra=solrcloud pytest